Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
I was able to create a count of Net tickets by day using the following formula (based on a youtube video I found), and it works GREAT!
Total DMRs =
CALCULATE(
COUNT('Distinct DMR'[DMR])
, 'Distinct DMR'[Open Date] <= MAX('Calendar'[Date])
&& ('Distinct DMR'[Close Date] > MAX('Calendar'[Date]) || ISBLANK('Distinct DMR'[Close Date]))
)
Shows me the total tickets Open rolling by day for the last 12 months:
I want to be able to create the chart below though, and tried using this formula, but it ends up blank. How am I overcomplicating this? 😞 It feels like this one should be easier and I'm probably making it too hard! Sorry
Total Opened =
CALCULATE(
COUNT('Distinct DMR'[DMR])
, 'Distinct DMR'[Open Date] = MAX('Calendar'[Date])
)
Solved! Go to Solution.
I guess you are looking for:
a) Active .. Total DMRs
b) Opened ... Opened DMRs
c) Closed ... Closed DMRs
Per your post, you said this is working fine: (I assumed that Active is working fine)
a) Active (Same copy of your above measure, no changes)
Total DMRs =
CALCULATE(
COUNT('Distinct DMR'[DMR])
, 'Distinct DMR'[Open Date] <= MAX('Calendar'[Date])
&& ('Distinct DMR'[Close Date] > MAX('Calendar'[Date]) || ISBLANK('Distinct DMR'[Close Date]))
)
b) Opened
Opened =
CALCULATE(
COUNT('Distinct DMR'[DMR]),
USERELATIONSHIP('Calendar'[Date], 'Distinct DMR'[Open Date])
)
c) Closed
Closed =
CALCULATE(
COUNT('Distinct DMR'[DMR]),
USERELATIONSHIP('Calendar'[Date], 'Distinct DMR'[Close Date])
)
I guess you are looking for:
a) Active .. Total DMRs
b) Opened ... Opened DMRs
c) Closed ... Closed DMRs
Per your post, you said this is working fine: (I assumed that Active is working fine)
a) Active (Same copy of your above measure, no changes)
Total DMRs =
CALCULATE(
COUNT('Distinct DMR'[DMR])
, 'Distinct DMR'[Open Date] <= MAX('Calendar'[Date])
&& ('Distinct DMR'[Close Date] > MAX('Calendar'[Date]) || ISBLANK('Distinct DMR'[Close Date]))
)
b) Opened
Opened =
CALCULATE(
COUNT('Distinct DMR'[DMR]),
USERELATIONSHIP('Calendar'[Date], 'Distinct DMR'[Open Date])
)
c) Closed
Closed =
CALCULATE(
COUNT('Distinct DMR'[DMR]),
USERELATIONSHIP('Calendar'[Date], 'Distinct DMR'[Close Date])
)
Figured it out - thank you!!! My Open Date was actually a date time, and I needed to add the .[Date] to it when I pulled it over to make sure it was not looking for Date/Time on the calendar Date!
Did it worked ?
If yes, post the snapshot of working results, so that future members can see the completed details 🙂 Also , mark it as solution. Thanks
Worked great - thanks!
I tried this prior, but end up loosing my date somehow when I do this.
My data structure looks like this:
When I try the suggestion I get this:
But yes - you are exactly right on when I am trying to do! Thanks!
Not sure - but is it something to do with me having my relationships set up wrong?
I think the relationships are causing as wrong. I noticed the Open Date having time. I assume similarly Close Date has time for not null values.
To resolve, can you have Open Date and Close Date as "Date" data type and then do the relationships again. Same way, but as date data type.
Open Date to Calendar Date
Close Date to Calendar Date
*looking at this 10 minutes ago would have been helpful 😄
Thanks so much!
🙂
Can you share please some more underlaying data structure?
How is opened and closed is calculated.
Proud to be a Super User!
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 64 | |
| 53 | |
| 42 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 124 | |
| 105 | |
| 44 | |
| 32 | |
| 24 |