Convert › F002
Location Type Analysis
Wave 3Location Type Analysis.tmdl
model Model
culture: en-US
defaultPowerBIDataSourceVersion: powerBI_V3
/// Generated by Migration Workbench from family F002 (Location Type Analysis); replaces 3 source reports.
table Incident
lineageTag: f002-incident
column Agency Id
dataType: int64
sourceColumn: agency_id
summarizeBy: none
column Location Type
dataType: string
sourceColumn: location_type
summarizeBy: none
column Occurred Date
dataType: dateTime
sourceColumn: occurred_date
summarizeBy: none
partition incident = m
mode: directQuery
source = Sql.Database("rjdw-sql", "RJDW"){[Schema="dbo",Item="incident"]}[Data]
measure Incidents = COUNTROWS(Incident)
formatString: #,0
table Agency
lineageTag: f002-agency
column Agency Id
dataType: int64
sourceColumn: agency_id
summarizeBy: none
column Agency Name
dataType: string
sourceColumn: agency_name
summarizeBy: none
partition agency = m
mode: directQuery
source = Sql.Database("rjdw-sql", "RJDW"){[Schema="dbo",Item="agency"]}[Data]
table UserAgency
lineageTag: f002-user_agency
column Agency Id
dataType: int64
sourceColumn: agency_id
summarizeBy: none
column User Name
dataType: string
sourceColumn: user_name
summarizeBy: none
partition user_agency = m
mode: directQuery
source = Sql.Database("rjdw-sql", "RJDW"){[Schema="dbo",Item="user_agency"]}[Data]
role 'Agency users'
modelPermission: read
tablePermission Agency = [Agency Id] IN CALCULATETABLE(VALUES(UserAgency[Agency Id]), UserAgency[User Name] = USERPRINCIPALNAME())