The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Dear all,
I am trying to calculate a delta between selected planning versions. I am able to calculate the absolute delta but i am not able to calculate if this delta is a negative or possitive deviation.
Used measure:
Product | 1 | 2 | Delta |
city bike | 10 | 20 | 10 |
Cross bike | 40 | 0 | -40 |
Mountain bike | 20 | 50 | 30 |
Race bike | 50 | 5 | -45 |
Current result
Product | 1 | 2 | Delta |
city bike | 10 | 20 | 10 |
Cross bike | 40 | 0 | 40 |
Mountain bike | 20 | 50 | 30 |
Race bike | 50 | 5 | 45 |
SAmple PBIX is attached.
thanks for your comments
Regards,
Paul
Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |
Thanks for your reply. The problem is this solution is that de planning version is selected by a slicer. In the example data there are only 2 but in real life a new version is created every day.