- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Calculating Recursive Value/Lookup value in Measure using DAX
Hi Team,
I Want to build a logic in measure based on the below.
Outcome row E2 =D2
Outcome row E3 =E2+C3
Outcome row E4 =E3+C4
Outcome row E5 =E4+C5
.... And so on...
I have attached the sample outcome looks like.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @venkatasreekant ,
1. Please try to create a measure with below dax formula:
Measure =
VAR max_val =
SELECTEDVALUE ( 'Table'[Max Value] )
VAR cur_month =
SELECTEDVALUE ( 'Table'[Month] )
VAR tmp =
FILTER ( ALL ( 'Table' ), [Month] >= cur_month )
VAR _a =
SUMX ( tmp, [Pre_Off-On] )
RETURN
max_val + _a
2. add a table visual with fields and measure
Please refer the attached .pbix file.
Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @venkatasreekant ,
1. Please try to create a measure with below dax formula:
Measure =
VAR max_val =
SELECTEDVALUE ( 'Table'[Max Value] )
VAR cur_month =
SELECTEDVALUE ( 'Table'[Month] )
VAR tmp =
FILTER ( ALL ( 'Table' ), [Month] >= cur_month )
VAR _a =
SUMX ( tmp, [Pre_Off-On] )
RETURN
max_val + _a
2. add a table visual with fields and measure
Please refer the attached .pbix file.
Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

@venkatasreekant That strikes me as recusive and thus not possible in DAX.
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!: Power BI Cookbook Third Edition (Color)
DAX is easy, CALCULATE makes DAX hard...

Helpful resources
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.
Power BI Monthly Update - June 2025
Check out the June 2025 Power BI update to learn about new features.

User | Count |
---|---|
76 | |
74 | |
57 | |
39 | |
35 |
User | Count |
---|---|
84 | |
69 | |
59 | |
46 | |
46 |