Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Currently i have the following graph. It shows the count of registrations (attendeeids) on a specific datediff (the difference in dates between the registration date of the attendee and the start of the event) for both events in the database.
However, i would prefer to have a line chart which shows the cumulative amount of registrations over the period of 182 days. (ultimately reaching the total amount of registrations at day 182) for both events with the possibility of more events in the future.
(here is also a sample of the attendee table with randomly generated test data if needed)
Thank you in advance,
Dries Wambacq
Solved! Go to Solution.
Hi @Anonymous ,
I'm assuming you are placing the datediff column on you x-axis you need to create the following measure:
CUMULATIVE COUNT =
CALCULATE (
COUNT ( 'Table'[Atendee] );
FILTER (
ALLSELECTED ( 'Table'[DateDiff] );
'Table'[Datediff] <= MAX ( 'Table'[Datediff] )
)
)
This should give expected result.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsI think for 182 days. Other than above formula you might have filter 182 dates either at visual level using relative option or relative date filter
https://docs.microsoft.com/en-us/power-bi/visuals/desktop-slicer-filter-date-range
Hi @Anonymous ,
I'm assuming you are placing the datediff column on you x-axis you need to create the following measure:
CUMULATIVE COUNT =
CALCULATE (
COUNT ( 'Table'[Atendee] );
FILTER (
ALLSELECTED ( 'Table'[DateDiff] );
'Table'[Datediff] <= MAX ( 'Table'[Datediff] )
)
)
This should give expected result.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsMarch 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
85 | |
79 | |
53 | |
39 | |
36 |
User | Count |
---|---|
100 | |
85 | |
47 | |
46 | |
44 |