Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 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.
Hi,
I've read responses to similar request using open and close dates for tickets etc. My query is slightly different in that there is no close date in the table I have. The date value gets updated each time there is a status change. The final status is "closed".
I'd like to count number of parts/tickets that have an open status on any given day and show a running total trend chart over time.
Logic would count number of lines with a date based on date lines being counted (running total) and exclude any items which have a closed status on a given date.
Thanks, Michael
Solved! Go to Solution.
Hi @Mikeellison
You can refer to the following sample.
Sample data
1.Create a calendar table and create a relationship between tables.
Calendar = CALENDAR(DATE(2023,1,1),DATE(2024,4,30))
2.Create a measure
Measure = CALCULATE(DISTINCTCOUNT('Table'[ID]),'Table'[Status]="Open")
Then put the following field to visual field
Output
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Mikeellison
You can refer to the following sample.
Sample data
1.Create a calendar table and create a relationship between tables.
Calendar = CALENDAR(DATE(2023,1,1),DATE(2024,4,30))
2.Create a measure
Measure = CALCULATE(DISTINCTCOUNT('Table'[ID]),'Table'[Status]="Open")
Then put the following field to visual field
Output
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
User | Count |
---|---|
126 | |
78 | |
78 | |
59 | |
51 |
User | Count |
---|---|
165 | |
83 | |
68 | |
68 | |
59 |