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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
ATTAR
Frequent Visitor

cumulative sum with one value

Hello all,

 

I am trying to make a cumulative sum with one value is that possible ?

Dataset : 

ATTAR_0-1640268713078.png


the idea is to have a linear curve like this : 
the first point will be 876 935, the second one 876 935*2, the third 876 935*3 etc. 

ATTAR_1-1640268786640.png

I tried this but not working : 

ATTAR_2-1640268870793.png

Thanks

5 REPLIES 5
Anonymous
Not applicable

Hi @ATTAR,

AFAIK, selectedvalue function does not suitable to handle aggregate row context. If you not setting 'alternate result', it will return blank when this function works with aggregate contents.

SELECTEDVALUE function - DAX | Microsoft Docs

For this scenario, I'd like to suggest you do some process to add variables with summarize function to manually group and calculate records with these categories at the detail level. Then you can invoke this measure with other formula calculations.

BTW, if this calculation includes multiple aggregations. You may need also to set multiple level aggregations in the formulas. (use summarize function calculates the first level, then use iterator function to summary previous results)
Regards,

Xiaoxin Sheng

Greg_Deckler
Community Champion
Community Champion

@ATTAR Try the Running Total quick measure built into Power BI Desktop. 

Sum of Column1 running total in Date = 
CALCULATE(
	SUM('Table7'[Column1]),
	FILTER(
		ALLSELECTED('Dates'[Date]),
		ISONORAFTER('Dates'[Date], MAX('Dates'[Date]), DESC)
	)
)


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

thank you for trying but it's not working. 

I got this result ( the orange line)

ATTAR_0-1640270497443.png

 

Hi @ATTAR 

 

Can you share a fomula you used to create this chart (how did you add Greg solution to your report)?

 


Appreciate your Kudos!!
LinkedIn: 
www.linkedin.com/in/vahid-dm/

 

 

ATTAR
Frequent Visitor

Hello @VahidDM 
Yes sure ; 
I added EarnoutStart on purpose for business purposes.

ATTAR_1-1640337971388.png

 

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.