Forum Discussion
Hide data in visual when filter is not used
Hi all. I am currently trying to add a measure to a table visualization that hides data when a filter is not used. I have attempted to use many different functions including ISFILTERED, HASONEVALUE, HASONEFILTER, and ISFILTERED nested in an IF function. I will just add the ISFILTERED measure here.
2 Replies
- Erokor
Resolver II
I'm not entirely sure why you have INT() surrounding the ISFILTERED() function, but I don't think it should impact much. The many to many relationship could be the culprit due to underlying functionality and the Blank Row portion that is created. Either way, having a many-to-many relationship isn't going to help you long term.
As a work around, you may be able to do a check using Variables by comparing the countrows of the table/column when filters are stripped from the column:
Check = VAR _CountDropFilter = CALCULATE( COUNT('Table'[Column]), REMOVEFILTERS('Table'[Column]) ) VAR _CountCurr = COUNT('Table'[Column]) VAR _Check = _CountDropFilter = _CountCurr RETURN IF(_Check = TRUE(),"Not Fitlered", "Filtered") - v-zhangti
Community Support
Hi, TubedData
Can you provide sample data for testing? Sensitive information can be removed in advance. What kind of expected results do you expect? You can also show it with pictures or Excel.
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.