Forum Discussion
Visual and dax level optimization that causes report slowdown
- May 14, 2025
Since in matrix you use months only as periods, changed grouping a bit. To the Data table column is added
Month = RELATED( 'Calendar'[Month] )
and new measures are
Count of Exisitng Days by Month = VAR bydates = SUMMARIZECOLUMNS ( Data[Month], "count", COUNTROWS ( DISTINCT ( SELECTCOLUMNS ( Data, Data[Date], Data[DBName-Point_Id] ) ) ) ) RETURN SUMX ( bydates, [count] ) /// Data Completeness by Month = DIVIDE ( [Count of Exisitng Days by Month], [Count of Possible Days] )
With them matrix calculation is
compare to
Not a lot but at least something. Matrix is on "Page 1" at PR-419 - Data Coverage - 03.pbix
Hi SergeiBaklan Sir,
I know you might be having a busy schedule.
Just to confirm, any update on the model rebuilt as requested above?
Thanks in advance sir!
Since in matrix you use months only as periods, changed grouping a bit. To the Data table column is added
Month = RELATED( 'Calendar'[Month] )
and new measures are
Count of Exisitng Days by Month = VAR bydates =
SUMMARIZECOLUMNS (
Data[Month],
"count",
COUNTROWS (
DISTINCT ( SELECTCOLUMNS ( Data, Data[Date], Data[DBName-Point_Id] ) )
)
)
RETURN
SUMX ( bydates, [count] )
///
Data Completeness by Month = DIVIDE ( [Count of Exisitng Days by Month], [Count of Possible Days] )
With them matrix calculation is
compare to
Not a lot but at least something. Matrix is on "Page 1" at PR-419 - Data Coverage - 03.pbix
- Excellove15May 14, 2025Iron Contributor
Hi SergeiBaklan Sir,
Many thanks for your quick response!🙂
Thats amazing quick workaround with the Dax.
Let me have a look and get back on this!
Thanks in advance!
- Excellove15May 30, 2025Iron Contributor
Hi Sir,
Apologise for the delay in response!
your solution works😍
It means a lot for your help!
have marked as solution
Thanks
- SergeiBaklanMay 31, 2025Diamond Contributor
Glad it helped, thank you for the feedback