Forum Discussion
novotnajk
4 years agoResolver I
Aggregate Patient Claims when Exceeding Threshold
Hi PBI Gurus! Need some help. Here's my dilemma: Part 1 - Table Here is my data table example Special ID reporting_date $ Medical Spend ABC123 1/1/2021 ...
- 4 years ago
Hi novotnajk
Here is my .pbix https://1drv.ms/u/s!AgCd7AyfqZtE3zw8aPY2ndPJl7a4?e=mmShevI believe that this solves both questions,
Thank you,
Let me know if you have any questions.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos πare nice too.
Nathaniel - 4 years ago
Hi Nathaniel!
We fixed all but one of the problems! π I'm going to repost the outstanding issue. Thanks for your help!
Nathaniel_C
4 years agoCommunity Champion
Try this:
Running Total =
var _currentDate = MAX('$ Medical Spend'[Reporting Date])
var _calc = CALCULATE([Medical Spend],FILTER(ALL('$ Medical Spend'[Reporting Date]),'$ Medical Spend'[Reporting Date] <=_currentDate))
return _calc
Let me know if you have any questions.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos πare nice too.
Nathaniel
novotnajk
4 years agoResolver I
Hi Nathaniel,
Thanks for the advice. I created the measure below:
$ Cumulative Medical Spend =
var _currentDate = MAX('Medical'[reporting_date])
var _calc = CALCULATE([$ Medical Spend],FILTER(ALL('Medical'[reporting_date]),'Medical'[reporting_date] <=_currentDate))
return _calc
But it didn't show all of the claims based on the ISL slicer. Also, the Medical Spend measure has the calculate in front because the data change each month. Does that matter?
I also can't get the $ SL Medical Spend formula do cumulate based on the filtered value either. I created a sample PBIX, but not sure how to attach it here.