Forum Discussion
Date slicer changing chart axis
- 8 years ago
Hi sdas028,
Based on my test, we can create the measure to meet your requirement.
pr1week = CALCULATE(SUM('Table'[am]),FILTER(ALL('Table'),'Table'[weeknum]=SELECTEDVALUE('Table'[weeknum])-1))Then we can get the result as we excepted.
For more details, please check the pbix as attached.
https://www.dropbox.com/s/t3riwx1tao9gd4v/week.pbix?dl=0
Regards,
Frank
Hi sdas028,
Based on my test, we can create the measure to meet your requirement.
pr1week = CALCULATE(SUM('Table'[am]),FILTER(ALL('Table'),'Table'[weeknum]=SELECTEDVALUE('Table'[weeknum])-1))Then we can get the result as we excepted.
For more details, please check the pbix as attached.
https://www.dropbox.com/s/t3riwx1tao9gd4v/week.pbix?dl=0
Regards,
Frank
Hi Frank,
Thanks very much for that. I ended up changing the way my report was laid out so no longer required it for this, however, I will keep this in the back of my mind if I ever need to do it again!
Thanks,
Sophie
- v-frfei-msft8 years ago
Community Support
Hi sdas028,
If you feel that makes sense, kindly mark my answer as a solution to cloese the case please.
Regards,
Frank
- sdas0288 years ago
Helper I
Hi Frank,
As this is wasn't the solution I used I didnt think marking it as the solution was correct. However, I have now done so for your convenience.