The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi all, I am a newbie with Power BI - only started a few weeks ago, so please excuse me if I'm asking basic questions.
I have a matrix visual that displays percentages of counts. I want to ensure this matrix is hidden unless a filter is applied to a particular field (controlled by a splicer). The reason is that if more than one item is selected in the matrix, the percentages are calculated per total count, not count per item. So to avoid people reporting 'fake' percentages', I want to hide the table unless only one item is selected. I created a measure as follows:
This does not work at all - it appears to be ignored completely. However when I do the exact same method (same measure, same filter, same splicer) to a column graph, the column graph is blank unless a value in the splicer is selected. But somehow it doesn't work on a matrix?
Important to note that all the data is from one table - data for matrix, graph, splicer all from the same table. So no relationship issues should be at play. The matrix has 2 field in Row, and 1 field in column.
i would appreciate some help!
Solved! Go to Solution.
Hello @Alocin ,
try this measure:
Measure = CALCULATE(
int(ISFILTERED(TableName[column_name])),
ALLSELECTED(TableName[column_name]))
Proud to be a Super User! | |
Hello @Alocin ,
try this measure:
Measure = CALCULATE(
int(ISFILTERED(TableName[column_name])),
ALLSELECTED(TableName[column_name]))
Proud to be a Super User! | |
Hi @Alocin
See my solutions in the linked posts included attached to them PBIX. Both use the same logic, creating DAX to test user choices and manipulate conditional formatting.
https://community.fabric.microsoft.com/t5/Desktop/Powerbi/m-p/3615548
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
User | Count |
---|---|
65 | |
62 | |
55 | |
53 | |
28 |
User | Count |
---|---|
181 | |
82 | |
67 | |
47 | |
44 |