Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
dharish20240911
New Member

Filtering the drop slicers

Example : 

I have three dropdown slicers titled as : 
1)Region , 2) Country , 3) City
When user select "Asia" from 1st dropdown(Region) then dynamically only related options (Countries in Asia) should be shown in 2nd slicer(Country) as 
India
China
Japan
Nepal
and When user select one of the option as "India" in 2nd dropdown(Country) then dynamically only related options (Cities in India ) should be shown in 3rd slicer as city names
Delhi
Mumbai
Hyderabad
Chennai
Please advise me in this concern using DAX.

1 ACCEPTED SOLUTION
v-zhengdxu-msft
Community Support
Community Support

Hi @dharish20240911 

 

Currently, the dax function can not recognize place names, and if you can't join the relationships, you can only manually add calculated columns, for example:

Here's a sample able:

Table3;

vzhengdxumsft_0-1726039282009.png

Add a calculated column:

Country =
SWITCH (
    TRUE (),
    'Table3'[City] IN { "Delhi", "Mumbai", "Hyderabad", "Chennai" }, "India",
    'Table3'[City] = "Beijing", "China",
    'Table3'[City] = "London", "Europe",
    BLANK ()
)

vzhengdxumsft_1-1726039324335.png

 

 

Best Regards

Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-zhengdxu-msft
Community Support
Community Support

Hi @dharish20240911 

 

Currently, the dax function can not recognize place names, and if you can't join the relationships, you can only manually add calculated columns, for example:

Here's a sample able:

Table3;

vzhengdxumsft_0-1726039282009.png

Add a calculated column:

Country =
SWITCH (
    TRUE (),
    'Table3'[City] IN { "Delhi", "Mumbai", "Hyderabad", "Chennai" }, "India",
    'Table3'[City] = "Beijing", "China",
    'Table3'[City] = "London", "Europe",
    BLANK ()
)

vzhengdxumsft_1-1726039324335.png

 

 

Best Regards

Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

dharish20240911
New Member

They are different tables and have no relationships , they all are dimensinal tables connected with fact table. 

Kaviraj11
Super User
Super User

Hi,

 

Are all three fields coming from the same table or is there any relationship created between them from different tables?




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.

Top Kudoed Authors