Forum Discussion
DAX Help
- 8 years ago
Assuming that your calculation is a measure called "My Measure", then you could do this:
Measure = IF(HASONEFILTER(<columnName>),[My Measure],BLANK())
<columnName> you would replace on the column that you want them to filter/slice on.
Put this Measure in place of where you currently have your "My Measure" in your line chart visualization (Values area most likely)
In this case, the output in the Line Graph is already a calculation I have created. Does this impact the solution?
Also, can you be a little more explicit in how and where this "new" measure is applied?
Thanks.
Assuming that your calculation is a measure called "My Measure", then you could do this:
Measure = IF(HASONEFILTER(<columnName>),[My Measure],BLANK())
<columnName> you would replace on the column that you want them to filter/slice on.
Put this Measure in place of where you currently have your "My Measure" in your line chart visualization (Values area most likely)
- Anonymous8 years agoNot applicable
Perfect, thanks.
One last question. Is there a way to display a message, when the condition hasn't been met (slicer used).
Such as, "Select Campaign Name to see results"?
Thanks again!
- parry2k8 years agoSuper User
create another measure to show label.
Label = IF(HASONEFILTER(Table3[Category]),"", "Select Campaign Name to see results")
- Anonymous8 years agoNot applicable
Thanks. And like above, can you tell me how this gets applied relative to Greg_Deckler direction to include his measure in the Values slot?
Thank you both.