Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello. I have a type/subtype structure in a single Table. It might be something like State and City. So...
Ohio
> Cleveland
> Columbus
Kentucky
> Louisville
Pennsylvania
> Pittsburgh
> Harrisburg
Users make slicer selections on the City. I need a DAX measure that tells me if two or more cities are SELECTED for any ONE state, and additionally returns the names of the selected cities.
So if the user selects Cleveland and Louisville, return nothing. If they select Cleveland AND Columbus, return the names of both.
I started writing something with the SUMMARIZE function to group the number of distinct cities for each state, but i can't work in the selected count part.
Can someone help? Thanks.
Make a clear example with input and your desired output. Because you write first:
So if the user selects Cleveland and Louisville, return nothing. If they select Cleveland AND Columbus, return the names of both. This do the measure 😉
Thank you 🙂
Proud to be a Super User!
Image attached. Thank you again.
Why do you not send it before. 🙂 I will try it tomorrow morning.
Proud to be a Super User!
Proud to be a Super User!
Thank you. That doesn't really work at all though. If one city is selected, it returns that city. If multiple cities are selected for several states, it returns nothing.
To add some clarity, if multiple cities are selected for ANY state, it should return the city/state groups that are selected.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
106 | |
105 | |
79 | |
69 | |
61 |
User | Count |
---|---|
143 | |
104 | |
103 | |
82 | |
70 |