Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi all,
I have a hierarchical slicer to allow the user to select the sales from whatever geographical region he/she needs.
All levels are populates using one table with the various attributes.
So they can select nothing at all, 1 or more countries, 1 or more states or one or more cities.
The user wants to have the selection as the title of the visualization
I tried to create this sophisticated dax but can not handle it well.
When a user selects 1 or more cities: the title should be: 'Your selection consists of' and then the selected cities
When a user selects 1 or more States: the title should be: 'Your selection consists of' and then the selected states
When a user selects 1 or more Countries: the title should be: 'Your selection consists of' and then the selected countries
How to get this done? I read the trick of putting the measure into the title. I 'just' need to create this measure..
Solved! Go to Solution.
Hi @MarcoDekker , try this measure:
Selection = if(ISFILTERED('Table'[City]),"Your selection consists of " & CONCATENATEX(VALUES('Table'[City]),'Table'[City],", "),
if(ISFILTERED('Table'[State]),"Your selection consists of " & CONCATENATEX(VALUES('Table'[State]),'Table'[State],", "),
if(ISFILTERED('Table'[Country]),"Your selection consists of " & CONCATENATEX(VALUES('Table'[Country]),'Table'[Country],", ")
)
)
)
Best regards
Hi @MarcoDekker , try this measure:
Selection = if(ISFILTERED('Table'[City]),"Your selection consists of " & CONCATENATEX(VALUES('Table'[City]),'Table'[City],", "),
if(ISFILTERED('Table'[State]),"Your selection consists of " & CONCATENATEX(VALUES('Table'[State]),'Table'[State],", "),
if(ISFILTERED('Table'[Country]),"Your selection consists of " & CONCATENATEX(VALUES('Table'[Country]),'Table'[Country],", ")
)
)
)
Best regards
Thanks, @Bifinity_75 . Works great. Once a statement works, dax seems so straightforward, but to get there..
Read about ISINSCOPE()
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
124 | |
79 | |
49 | |
38 | |
37 |
User | Count |
---|---|
196 | |
80 | |
70 | |
51 | |
42 |