Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Cuggers7
Frequent Visitor

Cases open on particular day, plus opened and closed

Cuggers7_1-1714543717905.png

 

Hi There, I am trying to create a graph on a table of incidents where I can see a history of how many incidents we had open on a day, but also how many were closed/opened. I have tried some similar ones on this community but none seem to work. 

Thanks. 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Cuggers7 

 

I’d like to acknowledge the valuable input provided by the @AntrikshSharma . Their initial ideas were instrumental in guiding my approach. However, I noticed that further details were needed to fully understand the case.
In my investigation, I took the following steps:

 

My sample:

vxuxinyimsft_0-1714989429446.png

 

New calculated table:

vxuxinyimsft_1-1714989558726.png

 

Relationship:

vxuxinyimsft_2-1714989626110.png

 

vxuxinyimsft_3-1714989641172.png

 

Create two measures as follow:

Open = CALCULATE(COUNT('Table'[Time Opened]), USERELATIONSHIP('Table'[Time Opened], 'Date'[Date]))
close = CALCULATE(COUNT('Table'[Time Closed]), USERELATIONSHIP('Table'[Time Closed], 'Date'[Date]))

 

Final Output:

vxuxinyimsft_4-1714989690040.png

 

If this sample data is structurally different from the one you are using, please do not hesitate to mention it and I will modify it.

 

Best Regards,
Yulia Xu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @Cuggers7 

 

I’d like to acknowledge the valuable input provided by the @AntrikshSharma . Their initial ideas were instrumental in guiding my approach. However, I noticed that further details were needed to fully understand the case.
In my investigation, I took the following steps:

 

My sample:

vxuxinyimsft_0-1714989429446.png

 

New calculated table:

vxuxinyimsft_1-1714989558726.png

 

Relationship:

vxuxinyimsft_2-1714989626110.png

 

vxuxinyimsft_3-1714989641172.png

 

Create two measures as follow:

Open = CALCULATE(COUNT('Table'[Time Opened]), USERELATIONSHIP('Table'[Time Opened], 'Date'[Date]))
close = CALCULATE(COUNT('Table'[Time Closed]), USERELATIONSHIP('Table'[Time Closed], 'Date'[Date]))

 

Final Output:

vxuxinyimsft_4-1714989690040.png

 

If this sample data is structurally different from the one you are using, please do not hesitate to mention it and I will modify it.

 

Best Regards,
Yulia Xu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Cuggers7
Frequent Visitor

Hi there, I am not getting a result with this dax =, how should i configure the relationship to the date table? do i use  would i use time opened or time closed?

 

AntrikshSharma
Super User
Super User

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.