Forum Discussion
Anonymous
6 years agoNot applicable
PowerBi Slicer and Matrix Visualisation Issue
Hello I have a problem, where I create a Slicer(Attribute) and select multiple items to display into the Matrix table it shows me blank spaces which I do not want to see as I only want to see the the...
- 5 years ago
Hi Anonymous ,
You need to drag the measure(Subject with AND-Only Condition) into filter pane and choose "is not blank" then apply filter.
Hope this can help you.
v-xuding-msft
5 years agoCommunity Support
Hi Anonymous ,
Please try this:
New Table as slicer:
Subject = VALUES('Table'[Subject])
A measure:
Subject with AND-Only Condition =
var selectedSubject=VALUES(Subject[Subject])
var countRowsFact=
COUNTROWS(
DISTINCT(
SELECTCOLUMNS(
FILTER(
'Table',
RELATED(Subject[Subject]) in selectedSubject
),
"Subject",
RELATED(Subject[Subject])
)
)
)
var countRowsSubject=COUNTROWS(selectedSubject)
return
IF(countRowsFact>=countRowsSubject,countRowsFact)
Anonymous
5 years agoNot applicable
Hi i tried the measure code and it does not seem to work do you know how i can resolve this issue?
- v-xuding-msft5 years agoCommunity Support
Hi Anonymous ,
We need to create a relationship between the two tables while using RELATED function.
And based on the error message, there is an extra ")" in your formula. Please remove one to try again.
I have attached my sample above. You could download it to have a try.