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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Omega
Impactful Individual
Impactful Individual

Recursion

Hi,

 

I have two tables where one is static and the other is dynamic:

 

DB1.PNG                   DB2.PNG

 

I'm trying to calculate KPI 3 for Country A, second table, in JUL'18:

 

The formula: KPI 3 = KPI 3 (previous month)+ KPI 1 - KPI 2

 

How to create this recursion in DAX? Please help. Thanks!

 

 

1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@Omega,

 

You may refer to the post below.

https://community.powerbi.com/t5/Desktop/Need-a-column-for-subtraction-of-Previous-row-for-same-Item...

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-chuncz-msft
Community Support
Community Support

@Omega,

 

You may refer to the post below.

https://community.powerbi.com/t5/Desktop/Need-a-column-for-subtraction-of-Previous-row-for-same-Item...

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
WolfBiber
Microsoft Employee
Microsoft Employee

Hi,

what looks your Data Model like?

Omega
Impactful Individual
Impactful Individual

Can you please clarify further? 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.