Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register 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!
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
56 | |
55 | |
54 | |
37 | |
29 |
User | Count |
---|---|
77 | |
62 | |
45 | |
40 | |
40 |