Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Here is the working DAX
Did I help? If yes, hit 👍 and accept this answer as a solution.
Thanks
Proud to be a Super User!
It will change obviously. check the values if it matched with your desired output or not. I can clearly see that it matched. -520 because we do not have row 1 value. Do we? value started from row 2. Mathematically the answer is right.
Proud to be a Super User!
For, Inner join - you will get 1 output (inner join takes only matching rows)\
for left join - you will get 2 output. (all from left, matching from right)
see sql joins
Proud to be a Super User!
I think you are missing something. Here is the solution file.
Proud to be a Super User!
File showing deleted
Here is the file. On this website, the file is deleted after you download it.
Proud to be a Super User!
2 table (A,B )
A - 3 rows (1,3,1 )
B - 4 rows (1,1,5,1)
I need output for inner join and left outer join bro
For, Inner join - you will get 1 output (inner join takes only matching rows)\
for left join - you will get 2 output. (all from left, matching from right)
see sql joins
Proud to be a Super User!
Hi, @Karthikgayathri
you can create a custom column. I created sample values like yours. see the screenshot below.
I think this is what you wanted.
M code is: if [Index] = 1 then [TimePlayed] else [TimePlayed] - #"Added Index"{[Index]-2}[TimePlayed]
in PBI report:
do not forget to sort the category column by Index.
Did this post help? If yes, hit 👍 and accept this answer as a solution.
Thanks
Proud to be a Super User!
Bro I already used this method in power query. I need another method by using variables or by using measure or any other performance best method
Here is the working DAX
Did I help? If yes, hit 👍 and accept this answer as a solution.
Thanks
Proud to be a Super User!
Ok output crt bro but i need 2 nd column previous row value and third column only I need difference ( like below images). In your output both the column denotes difference only. I m struggling mainly to get 2 nd column as previous row value. Without bringing index column any other way by using earlier function ?
Here is the second DAX:
Proud to be a Super User!
sry for that blur image because my phone camera not working properly.above image total mismatch ( both prev value and measure interchange)as well instead of showing 100 in prev value showing 0 wht is the reason . In time played difference column, u mentioned table[total] . total denotes wht ?
Total is a measure for the sum(timePlayed)
Proud to be a Super User!
See total value in output interchanged bro (-520,580)
It will change obviously. check the values if it matched with your desired output or not. I can clearly see that it matched. -520 because we do not have row 1 value. Do we? value started from row 2. Mathematically the answer is right.
Proud to be a Super User!
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
15 | |
11 | |
8 | |
8 | |
7 |
User | Count |
---|---|
14 | |
13 | |
9 | |
7 | |
6 |