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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anshenterprices
Helper IV
Helper IV

Calculation of Cumulative values based on the selected date and category

Hi Team,

DateCategory Value
10/18/6061Equity0.060695565
10/15/6061Equity0.06615055
10/16/6061Equity0.515556657
10/15/6061Equity-0.06055155
10/16/6061Equity-0.66555696
10/11/6061Equity0.61156187
10/8/6061Equity0.051511557
10/5/6061Equity0.860685859
10/6/6061Equity-0.191516616
10/5/6061Equity0.558910066
10/6/6061Equity0.055658656
10/1/6061Equity-0.566996667
9/50/6061Equity-0.666506606
9/69/6061Equity0.560666956
9/68/6061Equity-0.566655652
9/65/6061Equity-0.181656565
9/66/6061Equity0.569680007
9/65/6061Equity0.65686568
9/66/6061Equity0.869566057
9/61/6061Equity0.91181551
9/60/6061Equity-1.615065561
9/15/6061Equity-0.058655656
9/16/6061Equity-0.586559666
9/15/6061Equity0.69866606
9/16/6061Equity0.695616597
9/15/6061Equity0.595666057
9/10/6061Equity-0.185868681
9/9/6061Equity-1.005595582
9/8/6061Equity-0.698696588
10/18/6061Comm0.100965556
10/15/6061Comm0.518551956
10/16/6061Comm0.005665657
10/15/6061Comm-0.665565869
10/16/6061Comm0.595811897
10/11/6061Comm-0.066595161
10/8/6061Comm0.865866651
10/5/6061Comm0.590558661
10/6/6061Comm0.606856562
10/5/6061Comm-0.066665911
10/6/6061Comm-0.566855686
10/1/6061Comm-0.569561665
9/50/6061Comm0.556555889
9/69/6061Comm-1.680619609
9/68/6061Comm-0.681805652
9/65/6061Comm0.556056987
9/66/6061Comm0.506559566
9/65/6061Comm0.866561002
9/66/6061Comm0.966566861
9/61/6061Comm-1.655669567
9/60/6061Comm1.061919057
9/15/6061Comm-0.666565559
9/16/6061Comm0.516056866
9/15/6061Comm0.566508067
9/16/6061Comm0.616059589
9/15/6061Comm-0.18095666
9/10/6061Comm-1.000056519
9/9/6061Comm-0.656565907


Requirement:- Based on the selected date ,calculate cumulative values based on the formula below


need to show line graph on x axis date and y axis cumulative values and legends as category

Regards,

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anshenterprices , Assume you have base value measure of static value

 

Cumm =[Base Value] + CALCULATE(SUM(Table[value]),filter(allselected(Table),Table[Date] <=max(Table[Date]) && Table[category] =max(Table[category])  ))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Anshenterprices , Assume you have base value measure of static value

 

Cumm =[Base Value] + CALCULATE(SUM(Table[value]),filter(allselected(Table),Table[Date] <=max(Table[Date]) && Table[category] =max(Table[category])  ))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak  Thank you so much

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.