Forum Discussion
Anonymous
5 years agoNot applicable
DAX Issue.
Hi Experts, When I'm trying to create a measure I stuck up with below issue. Basicaly here I'm trying to display previous year values. I can use datediff but my column RPT Year is in Whole numb...
ryan_mayu
5 years agoSuper User
Anonymous
maybe you can try this
Test = CALCULATE(SUM(Query[Jan]),Query2[RPTyear]=SLECTEDVALUE(Query2[RPTyear])-1))- Anonymous5 years agoNot applicable
When I'm using selectedvalue function getting below error
Error:
A function 'SELECTEDVALUE' has been used in a True/False expression that is used as a table filter expression. This is not allowed.
- ryan_mayu5 years agoSuper User
Anonymous
you need to create a calendar table and use dateadd
https://docs.microsoft.com/en-us/dax/dateadd-function-dax