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
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])  ))

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

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])  ))

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

@amitchandak  Thank you so much

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.