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
rp2022
Helper I
Helper I

Cummulative / Running total based on 2 criteria

Below is the data

NumberRPLabelGroup$
1Ku1PDPD100
j2Nu2PDPD200
3Nu3PDPD500
1Ku1Aug-24Date900
6Nu2PD < CYPD < CY600
t2Ku4Dec-24Date400
3eNu3PDPD500
gt6Nu2Aug-24Date700
asdf3Ku1SDate800
asdf7845Nu4Dec-24Date9000
adfa564569Ku3PDPD100
1Nu1PD < CYPD < CY600
j3Nu2Jun-24Date6000
4Ku3SDate5000
f52rNu1PDPD6500
7Ku2Jul-24Date266
t3Nu4Sep-24Date2555
3eNu3Dec-24Date56632
gt7Ku2PDPD28996
asdf15687Nu1PD < CYPD < CY6352
1Ku4Sep-24Date5569
adfa564570Nu3Dec-24Date5626
3Nu1PDPD5989
j4Ku2Aug-24Date998
1Nu3PD < CYPD < CY889
1Ku1Dec-24Date7895
8Nu2PDPD8956
1Nu4SDate565
3eKu3Sep-24Date56

 

And here the output i want:

rp2022_0-1712598413734.png

 

I have a measure that does somewhat a good job, but when i filter by a perticular label, it shows values only for that label and not th ecumulative value. SO, I thought that i need a calculated column, which is not working.

Measure $ =
    VAR __group = MAX('Data'[Group])
    VAR __cur_date = MAX('Data'[Date])
    VAR __result = CALCULATE(SUM('Data'[Total $]),FILTER(ALLSELECTED('Data'),'Data'[Group]=__group && 'Data'[Date]<=__cur_date))
RETURN
__result

 

9 REPLIES 9
rp2022
Helper I
Helper I

I am sorry for the confusion, the output should look more like this: 

rp2022_0-1714160817939.png

And should work for all filters like columns R, P, number etc

how you get 7034?





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

Proud to be a Super User!




1465+5569

@rp2022 

11.PNG

pls see the attachment below





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

Proud to be a Super User!




ryan_mayu
Super User
Super User

what's the calculation logic? pls clarify how to get the expected output





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

Proud to be a Super User!




OOPS my bad, For S it should be more like 565

then how to get the output for 8/1,9/1 and 12/1?





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

Proud to be a Super User!




Calculated column  for Sum by 2 columns: Number and label

still not clear, for example , how to get 100 for S?





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

Proud to be a Super User!




Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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