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.
Hi Community,
Please help me with below .
The requirement is to substract current value and previous value . I used offset and it worked as expected . However, the External filter (Date field ) is returning wrong results for first month(Jan 2022) and working properly for other months . Please see screenshots below for reference and also the DAX measure i created.
Date filter is mandatory. At the same time, Expected value for Jan 2022 is 6.50 , but not 60.94
DAX measure :
Hi,
The measure can be simplied to
Measure = calculate(Average('X'[level_percentage]),previousmonth('Monthly Calendar Table SCI'[Date]))
You are right @AllisonKennedy . I think i was desperate to try a new DAX expression OFFSET when I designed the measure before . It worked now well with Dateadd .
Thanks for the help . 🙂
@gvenkatesh482 Glad it worked! Can you mark this as solved please so others can find the solution quickly?
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
@gvenkatesh482 Try using ALL instead of ALLSELECTED
Also, I think you can achieve the same result using DATEADD instead of OFFSET, provided your date table is marked as a date table.
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
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 |
---|---|
104 | |
95 | |
80 | |
67 | |
62 |
User | Count |
---|---|
147 | |
109 | |
107 | |
85 | |
63 |