- 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
DAX Query to subtract current col from previous column
I have a calculated field in tableau :ROUND(SUM([ECL_Prov_Final (in Cr)]) - LOOKUP(ZN(SUM([ECL_Prov_Final (in Cr)])), -1),2)
Please help me to write a DAX query in PowerBI.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
HI @vksk0338,
In power bi data model tables, current it does not include row and column index. Any fields that stored regular values to be use as the index for these calculations? Can you please share some more detail?
How to Get Your Question Answered Quickly
BTW, you an also try to use the following measure formula if helps:
formula =
VAR _index =
MAX ( Table1[Index] )
RETURN
ROUND (
SUM ( Table1[ECL_Prov_Final (in Cr)] )
- LOOKUPVALUE ( Table1[ECL_Prov_Final (in Cr)], Table1[Index], _index - 1 ),
2
)
Regards,
Xiaoxin Sheng
If this post helps, please consider accept as solution to help other members find it more quickly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
HI @vksk0338,
In power bi data model tables, current it does not include row and column index. Any fields that stored regular values to be use as the index for these calculations? Can you please share some more detail?
How to Get Your Question Answered Quickly
BTW, you an also try to use the following measure formula if helps:
formula =
VAR _index =
MAX ( Table1[Index] )
RETURN
ROUND (
SUM ( Table1[ECL_Prov_Final (in Cr)] )
- LOOKUPVALUE ( Table1[ECL_Prov_Final (in Cr)], Table1[Index], _index - 1 ),
2
)
Regards,
Xiaoxin Sheng
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources
Join us at the Microsoft Fabric Community Conference
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Power BI Monthly Update - February 2025
Check out the February 2025 Power BI update to learn about new features.

Subject | Author | Posted | |
---|---|---|---|
07-30-2024 07:42 AM | |||
08-25-2023 01:14 AM | |||
07-04-2024 05:17 PM | |||
07-20-2023 10:26 AM | |||
11-20-2023 11:46 AM |
User | Count |
---|---|
16 | |
2 | |
2 | |
1 | |
1 |
User | Count |
---|---|
17 | |
6 | |
3 | |
2 | |
2 |