Forum Discussion
DAX expression - ignore dimension from graph
- 7 years ago
Hi cosmic,
I am not clear about your requirement , did you mean that you won't want to show "A" in axis, and count label="A" and value =1 for B,C,D, right?
If so, you could try to use below measure to see whether it work or not(table 2 is for slicer which have only column have values A,B,C,D)
Measure = VAR s = SELECTEDVALUE ( Table2[Column1] ) RETURN IF ( s IN VALUES ( graph[Label] ), BLANK (), CALCULATE ( COUNT ( graph[Label] ), FILTER ( ALL ( graph ), graph[Label] = "A" && graph[Value] = 1 ) ) )You need to set filter on measure to "is not blank"
If this is not what you want, please inform me your expecting output by image or drawings
Best Regards,
Zoe ZhiIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi cosmic,
I am not clear about your requirement , did you mean that you won't want to show "A" in axis, and count label="A" and value =1 for B,C,D, right?
If so, you could try to use below measure to see whether it work or not(table 2 is for slicer which have only column have values A,B,C,D)
Measure =
VAR s =
SELECTEDVALUE ( Table2[Column1] )
RETURN
IF (
s IN VALUES ( graph[Label] ),
BLANK (),
CALCULATE (
COUNT ( graph[Label] ),
FILTER ( ALL ( graph ), graph[Label] = "A" && graph[Value] = 1 )
)
)You need to set filter on measure to "is not blank"
If this is not what you want, please inform me your expecting output by image or drawings
Best Regards,
Zoe Zhi
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks a lot!
Cosmin