Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi all,
I'm currently working on this chart, and as Q3 and Q4 data are not in yet, is there a way I can hide the Q3 and Q4 dark blue bars?
This is the simplified dataset:
Date | Q1 | Q2 | Q3 | Q4 |
realized | 80 | 20 | NULL | NULL |
forecasted | 68 | 92 | 73 | 74 |
I had used the 'running total' quick measure to get the cumulative totals, and this was the resulting formula for 'realized' chart:
CALCULATE(
SUM(Realized),
FILTER(
CALCULATETABLE(
SUMMARIZE('Calendar', 'Calendar'[CurrentDayOffset], 'Calendar'[Date]),
ALLSELECTED('Calendar')
),
ISONORAFTER(
'Calendar'[CurrentDayOffset], MAX('Calendar'[CurrentDayOffset]), DESC,
'Calendar'[Date], MAX('Calendar'[Date]), DESC
)
)
)
Any help would be appreciated, thank you!
Solved! Go to Solution.
Hello @GregGiamz ,
Please ignore blanks during the calculation. Your measure should look as below:
If(IsBlank(Realized),Blank(),
CALCULATE(
SUM(Realized),
FILTER(
CALCULATETABLE(
SUMMARIZE('Calendar', 'Calendar'[CurrentDayOffset], 'Calendar'[Date]),
ALLSELECTED('Calendar')
),
ISONORAFTER(
'Calendar'[CurrentDayOffset], MAX('Calendar'[CurrentDayOffset]), DESC,
'Calendar'[Date], MAX('Calendar'[Date]), DESC
)
)
)
If this post helps, then please consider accepting it as the solution to help other members find it more quickly. Thank You!!
Hello @GregGiamz ,
Please ignore blanks during the calculation. Your measure should look as below:
If(IsBlank(Realized),Blank(),
CALCULATE(
SUM(Realized),
FILTER(
CALCULATETABLE(
SUMMARIZE('Calendar', 'Calendar'[CurrentDayOffset], 'Calendar'[Date]),
ALLSELECTED('Calendar')
),
ISONORAFTER(
'Calendar'[CurrentDayOffset], MAX('Calendar'[CurrentDayOffset]), DESC,
'Calendar'[Date], MAX('Calendar'[Date]), DESC
)
)
)
If this post helps, then please consider accepting it as the solution to help other members find it more quickly. Thank You!!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
105 | |
94 | |
75 | |
63 | |
62 |
User | Count |
---|---|
137 | |
105 | |
104 | |
80 | |
63 |