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,
I am looking to calculate Week over Week % using the following measure:
Solved! Go to Solution.
Hi @dyttam , try changing your MIN ('dwh SCFinance_Weekly_WIP'[WEEKEND]) - 1) to MIN ('dwh SCFinance_Weekly_WIP'[WEEKEND]) - 7) since the WEEKEND column is of date type.
Otherwise, you can also use a week number column instead and then it will be something like MIN ('dwh SCFinance_Weekly_WIP'[WEEKNUM]) - 1) to get the previous week's value. Reference: https://community.powerbi.com/t5/Desktop/Change-this-week-over-last-week/m-p/1377285#M587828
I added in an IF statement that would return "N/A" if the VAR "LastWeekValue" = 0.
It looks like I am correct that the error is in the Filtering part of the DAX as all entries showed up as N/A.
Hi @dyttam , try changing your MIN ('dwh SCFinance_Weekly_WIP'[WEEKEND]) - 1) to MIN ('dwh SCFinance_Weekly_WIP'[WEEKEND]) - 7) since the WEEKEND column is of date type.
Otherwise, you can also use a week number column instead and then it will be something like MIN ('dwh SCFinance_Weekly_WIP'[WEEKNUM]) - 1) to get the previous week's value. Reference: https://community.powerbi.com/t5/Desktop/Change-this-week-over-last-week/m-p/1377285#M587828
Hi @dyttam ,
What is the value of min(table[weekend]) -1, pretty sure it will not be last week value, likely will be the day before. Once you get the correct weekend value i would imagine it will work properly. If you are able to share either the PBIX or some sample data that would be helpful.
Hope this Helps,
Richard
Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!
Proud to be a Super User!
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 |
---|---|
109 | |
98 | |
80 | |
64 | |
57 |
User | Count |
---|---|
145 | |
111 | |
92 | |
84 | |
66 |