Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more
Hi all, I hope somebody can provide some guidance with this.
I want to display a cumulative curve on a histogram chart; I want the curve to react to a Date slicer (I can selected fiscal year, fiscal quarter, month) so that the starting point of the curve is 0 in correspondence of the start date of the period selected. Currently the cumulative curve is cumulating from the MIN date contained in the calendar and not the MIN date from the slicer selection (the only syntax I seem to be able to use to have a cumulative curve is the following).
CURRENT SYNTAX:
Cumulative Appointments =
)
The issue is that the above returns a cumulative from the MIN date of the calendar, not the MIN date of the date selection from the slicer. I have then tried to use the following (and also a variation of this but using KEEPFILTERS - none of the attempts is working).
ATTEMPTED SYNTAX (not working):
Hi,
I am not 100% sure without seeing the data model, but please try replaceing ALL with ALLSELECTED.
And please check if the calendar table is assigned as date-table.
Cumulative Appointments =
CALCULATE (
[SUM Estimate Fees GBP (k) APPOINTMENTS],
FILTER (
ALL ( 'Calendar'[Date] ),
'Calendar'[Date] <= MAX ( 'Calendar'[Date] )
)
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Annyeonghaseyo Jihwan Si (I lived in Korea - Busan)
The Date table is marked as date table (I have just checked). I have amended the syntax as per your recommendation but it didn't work (the cumulative curve defaults back to being a curve that connects the values of the histogram bars instead of cumulating them):
This is now working:
Hi,
Thank you very much for your feedback.
I am not sure why mine did not work, perhaps I did not understood well your previous measure and the data model. It was quite difficult to understand 100% without seeing and checking it, however, in most cases when authors want to write measures that is responding to the slicer selection that is placed on the same page, ALLSELECTED DAX function is generally used.
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Check out the April 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
102 | |
68 | |
46 | |
37 | |
37 |