Forum Discussion
Filters with descriptions instead of codes
- Anonymous2 years ago
Hi OmoigirlBI
You can create a measure.
Measure = VAR a = SUMMARIZE ( FILTER ( MASTER - GEOGRAPHY, [GEOGRAPHY_CODE] IN VALUES ( 'MY REPORT'[GEOGRAPHY_CODE] ) ), [GEOGRAPHY_DESCRIPTION_ES] ) RETURN IF ( SELECTEDVALUE ( MASTER - GEOGRAPHY[GEOGRAPHY_DESCRIPTION_ES] ) IN a, 1, 0 )Then put the measure to the slicer visual filter and remove your code field
Then it can only display the description.
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
Welcome !
Can you please put a screenshot of your data and also show us the desired outcome so that we can help 😀
Hi and thank you!!
I have two tables, one master of geographies, and another one with my report, they are related by geography_code, but i don't know how in my filter, use description instead of code of geography.
- OmoigirlBI2 years agoFrequent Visitor
I could only get this, but I need the description alone:
- Anonymous2 years agoNot applicable
Hi OmoigirlBI
You can create a measure.
Measure = VAR a = SUMMARIZE ( FILTER ( MASTER - GEOGRAPHY, [GEOGRAPHY_CODE] IN VALUES ( 'MY REPORT'[GEOGRAPHY_CODE] ) ), [GEOGRAPHY_DESCRIPTION_ES] ) RETURN IF ( SELECTEDVALUE ( MASTER - GEOGRAPHY[GEOGRAPHY_DESCRIPTION_ES] ) IN a, 1, 0 )Then put the measure to the slicer visual filter and remove your code field
Then it can only display the description.
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.