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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Vamshi_R
Frequent Visitor

Need Help!! Calculating Current open claims for every month.

I can calculate new cliams and closed claims for every month current and past, however need to calculate below calculation to show current open cliams for any month in report...

 

Current Open cliams = Current Opencliams previousmonth+ new claims - closed cliams 

 

Any help will be great....

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

Try like

calculate(count(claims[id]),filter(claims,claims[Open Date]<ENDOFMONTH('Date'[Date Filer]) && claims[Close Date]>ENDOFMONTH('Date'[Date Filer]) )

Where date is date table in power bi

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks.

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

8 REPLIES 8
Vamshi_R
Frequent Visitor

Situation as an example below...

Open claims EOM December = 573,  New cliams created and also Claims Reopened in January = 175, Claims Closed = 150. Now, I need to write a DAX to get Current Open claims = 573+175- 150 = 598 for the month of January.

Any thing which opens before this month-end and not closed before this month-end is open. That is what I was trying to find. 

 

It is the same as what you are saying, just a changed way to implement. 

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

 Hi Amit, you are correct I tried and trying to put the number to report, however team want to replicate similar to the screenshot shown in attached... Capture1.PNG

Using Amit's solution I was able to find current month open claims, I found data all these days they were counting which is manual was wrong, now they dont want to change previous data numbers, however calculate current open claims using dax keeping previous monthly number fixed (till June 2019).

I need to write a dax to calculate Previous month current open claims which should pickup from a table which I will create with previous historic data with End of the month date and number of claims as columns, and from July onwards need to write Amith's code.

 

Any ideas will help me great ..... thank you all.

If open claim no is correct. This how you have to deal with open and close.

Make sure you have a date dimensions table. Marked as Date Table in Power BI Model.

Join it both open and close date. One or both can be inactive joins. As per your current join.

Refer to the article below on how to use userelation to shift date.

 

https://community.powerbi.com/t5/Desktop/DATE-RANGE-SLICERS-TO-COMPARE-NETSALES-OF-A-DATE-RANGE/td-p...

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks.

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Thank you Amit, will check as you suggested.

amitchandak
Super User
Super User

Try like

calculate(count(claims[id]),filter(claims,claims[Open Date]<ENDOFMONTH('Date'[Date Filer]) && claims[Close Date]>ENDOFMONTH('Date'[Date Filer]) )

Where date is date table in power bi

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks.

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
PattemManohar
Community Champion
Community Champion

@Vamshi_R Try creating the measure for "Current Open Claims" and use this measure along with Time-Intelligence DAX functions





Did I answer your question? Mark my post as a solution!

Proud to be a PBI Community Champion




Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.