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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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