Forum Discussion
Anonymous
7 years agoNot applicable
Letting user set date variable for calculated measures
Hi, Please can you tell me how to allow a user to set a date variable (on a report page) which will then be used by a calculated measure? I tried clicking on "New Parameter" expecting to see ...
- 7 years ago
Use the SELECTEDVALUE function:
https://www.sqlbi.com/articles/using-the-selectedvalue-function-in-dax/
https://community.powerbi.com/t5/Desktop/Use-selectedvalue-in-a-measure/td-p/483456
Anonymous
7 years agoNot applicable
Thanks JoyCornerstone , sorry but how do you get the selected value into a parameter/measure? If I create a slicer doesn't that just filter the underlying tables?
JoyCornerstone
7 years agoResolver II
Use the SELECTEDVALUE function:
https://www.sqlbi.com/articles/using-the-selectedvalue-function-in-dax/
https://community.powerbi.com/t5/Desktop/Use-selectedvalue-in-a-measure/td-p/483456
- Anonymous7 years agoNot applicable
Fantastic, thank you :smileyhappy: