Forum Discussion
sbuster
3 years agoHelper I
Query optimization assistance
Hello, I am trying to see if there is a way to optimize the measure in the sample attachment. The model details an asset (automobile) with events (EventFacts) on a given date. Each automobile may ...
tamerj1
3 years agoCommunity Champion
Hi sbuster
Please try
Count of Assets Reporting =
COUNTROWS (
DISTINCT (
SELECTCOLUMNS (
FILTER (
EventFacts,
EventFacts[AssetID] IN ( DISTINCT ( AssetEventMapping[AssetID] ) )
),
"@AssetID", EventFacts[AssetId]
)
)
)
sbuster
3 years agoHelper I
Thanks for you response, that improved performance significantly!