Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello community,
I created a matrix and the results are fine. But when I switch slicer from 2020 to 2021 it takes 14000 ms. When I enable the subtotals 6600 ms. Is that normal or would some optimization of the measures help?
I have a table with start and end dates. calculate a new end date:
Solved! Go to Solution.
Using variables might improve performance
Measure1 =
VAR MaxEndDate =
MAX ( TABLE[END_DATE] )
VAR YearEnd =
DATE ( SELECTEDVALUE ( CALENDER[YEAR] ), 12, 31 )
RETURN
IF (
ISBLANK ( MaxEndDate ),
YearEnd,
IF ( MaxEndDate <= YearEnd, MaxEndDate, YearEnd )
)
Using variables might improve performance
Measure1 =
VAR MaxEndDate =
MAX ( TABLE[END_DATE] )
VAR YearEnd =
DATE ( SELECTEDVALUE ( CALENDER[YEAR] ), 12, 31 )
RETURN
IF (
ISBLANK ( MaxEndDate ),
YearEnd,
IF ( MaxEndDate <= YearEnd, MaxEndDate, YearEnd )
)
Interessting. It gets double faster. Thx!
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 97 | |
| 70 | |
| 50 | |
| 42 | |
| 40 |