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
Syndicate_Admin
Administrator
Administrator

DAX add the value of a later column to the value of the previous column

Hello

I'm trying to pull out the following calculation that I show below with DAX,

the "Valor_3" is the "Valor_2" of the previous column + "Value1" of the back column and so on. ("Value1" and "Value2 are measures") :

Susi_1978_2-1637657642272.png

"value1","value2" are measures.

I don't know if anyone can help me.

Thanks a lot.

2 REPLIES 2
amitchandak
Super User
Super User

@Syndicate_Admin , A new measure

 

sum(Table[valor2]) + calculate(sum(Table[valor1]) , filter( allselected(Table), [indice] <= max([indice]) && [valor2] =0))

 

 

 

a New column
sum(Table[valor2]) + calculate(sum(Table[valor1]) , filter( (Table), [indice] <= earlier([indice]) && [valor2] =0))

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

Thank you, for the quick response, but it is not valid for me.

Since it is a display table, and "value1","value2" are measures, not calculated columns.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors