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
Lyvili
Frequent Visitor

KPI, average without filter Cases Open

Good afternoon!

I am trying to calculate a KPI which is easy but due to a year month filter I am not able to reach it.

 

KPI is number of cases open at the end of the month.

 

Cases Table is linked to date calendar through Dimdateclose of the dimcases, that means when I use calendar date as main filter (as I have more sources), of course, is taking all the cases closed.

 

I tried with:

Cases Open = CALCULATE(SUM(DimCases.Cases), DimCases.Status = "Open", ALL(DimCases.DateClosed)).

 

It does not work 😞

 

Could you please help me?

 

Thanks in advance!

3 REPLIES 3
Lyvili
Frequent Visitor

Thanks all! Before applying I am looking forward for a solution in a issue of the data. I will keep you informed.

v-yaningy-msft
Community Support
Community Support

Hi, @Lyvili 

According to your description, you want to filter all open cases based on Year Month filter, you can try to use @ray_aramburo method and if it doesn't work, you can share the pbix file without sensitive data to help solve your problem faster.

 

Best Regards,
Yang
Community Support Team

ray_aramburo
Super User
Super User

Assuming you have the right relationships and data model, you only need this portion of the measure:

Cases Open = CALCULATE(SUM(DimCases.Cases), DimCases.Status = "Open")

It will return you the number of open cases in the time span that you decide when you filter the date table.





Did I answer your question? Give your kudos and mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.