Forum Discussion
SELECTEDVALU matrix total some BLANK
I don't understand why when there are values in more than one column the values are returned as BLANK, but if there are only one column the values are returned correctly.
My DAX:
4 Replies
- vanessafvg
Community Champion
selectedvalue() needs filter context or it will always show blank if giving multiple values as its intended for only one value.
use a different aggregation function like max or min if you are looking at multiple values, you will still need to return one value.
https://www.sqlbi.com/articles/using-the-selectedvalue-function-in-dax/
- Tiger2514555
Helper III
But in my total there are several contexts that I think might need to be changed to a different one.
Because I need the difference of Week Num Create 45 and 44. with quantities which have many values in case I want to see in total.
So do you have any ideas on how to fix it?- vanessafvg
Community Champion
if you can provide some sample data with and example of your expected result then it will be easier to help you.