Forum Discussion
SundarKumar
3 years agoFrequent Visitor
How to achieve Difference % based on previous row value
Hi Everyone, I have a requirement to calculate the difference (%) based on previous row value, The condition is first sort the rows based on start date, if we have two rows with same start date i...
amitchandak
3 years agoSuper User
SundarKumar , the offset function can help
Continue to explore Power BI Offset Compare Categories, Time Intelligence MOM, QOQ, and YOY: https://youtu.be/5YMlkDNGr0U
- SundarKumar3 years agoFrequent Visitor
Dear Amit,
Thank you for the solution but small change in requirement that after sorting the rows based on Start date and lot number, we need to consider the first row as base and get the difference from remaining rows. In my example we need to consider 4.13 as base and 4.13 should come in Previous value feild and compute difference based on 4.13 value.
Regards,
Sundar