Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello All,
I'm looking to compare the Start date of a row with the end date of the previous row using an if condition and display the result in a calculated column.
Here for example , if you take row 2 - I'm looking to compare Jan 10 with Feb 1.
Looking forward to your help.
Thanks.
Solved! Go to Solution.
Getting a value from the previous row is not something that is native to Power BI. But it is a very common request.
We use a work around. Since we always want just the previous row we add an index to our table (this assumes the table arrives in power bi in the proper sort order).
Once we have an index we can use it to "move back" to the previous row and get the date
Help when you know. Ask when you don't!
Getting a value from the previous row is not something that is native to Power BI. But it is a very common request.
We use a work around. Since we always want just the previous row we add an index to our table (this assumes the table arrives in power bi in the proper sort order).
Once we have an index we can use it to "move back" to the previous row and get the date
Help when you know. Ask when you don't!
Thanks for your reply! I will work with index column.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
97 | |
86 | |
70 | |
62 |
User | Count |
---|---|
151 | |
120 | |
103 | |
87 | |
68 |