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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Cuggers7
Regular 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. 

 

3 REPLIES 3
v-xuxinyi-msft
Community Support
Community Support

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
Regular 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
Community Champion
Community Champion

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors