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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors