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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Balaraju
Helper III
Helper III

Switching to Dynamic X Axis based on filter Selection

Hi All, 

 

Hope all are doing good.

 

I have one requirement based on the filter selection I want the X-Axis should be changed dynamically.

i.e I have data with different countries along with Key accounts, dealer, region, and sales. Here all countries are showing Key accounts under the key accounts column but Indonesia Instead of maintaining a Key account number under the key account column they are maintaining Region and Dealer column they are maintaining Key account. you can see the screenshot below.

Balaraju_0-1662448881333.png

 

because of this data, the visuals show like the below screenshots.

Balaraju_1-1662448978218.png

 

when the user selects Indonesia from the filter instead of showing key accounts it is showing region cause Indonesia has a region in the key account column.

Balaraju_2-1662449027365.png

 

Now my actual requirement is I want to see dealers in X- axis, when I select Indonesia country rest of the countries need to show key account data because Indonesia has key accounts in the dealer column. see below screen shot.

Balaraju_3-1662450259563.png

Data:

Balaraju_4-1662450313002.png

Thanks,

Bala.

 

 

 

 

 

 

 

1 ACCEPTED SOLUTION
ddpl
Solution Sage
Solution Sage

@Balaraju try this

Create new Calculated Column as per below:

Final Keys = IF('Table'[Country] = "Indonesia",'Table'[Dealer],'Table'[Key])

View solution in original post

1 REPLY 1
ddpl
Solution Sage
Solution Sage

@Balaraju try this

Create new Calculated Column as per below:

Final Keys = IF('Table'[Country] = "Indonesia",'Table'[Dealer],'Table'[Key])

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors