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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Warhawk
Frequent Visitor

Dynamic change in X Axis

Hi BI Masters!

 

I'm fairly new in the world of Power BI and came accross a problem that's puzzling me for quite some time now.

I have a table with columns for Country, Region, City and several numerical values. What I want to do is to create a column chart with drilling option - without drilling. 🙂

So I'd have 3 slicers (country, region, store) and several IF THEN options. IF nothing is filtered the chart would show data on country level. If country is filtered it'd show data on region level (for the selected country). If region is filtered it'd show data on city level (for the selected country / region). If city is filtered it'd show data for that one city alone.

 

My first thought was to create a calculated column that'd copy the values from one of the columns based on the ISFILTERED function but because calculated columns are initialized on data load and not on user interaction it wouldn't work.

 

So here's my question: is it possible to create something like this?

1 ACCEPTED SOLUTION
Eric_Zhang
Microsoft Employee
Microsoft Employee


@Warhawk wrote:

Hi BI Masters!

 

I'm fairly new in the world of Power BI and came accross a problem that's puzzling me for quite some time now.

I have a table with columns for Country, Region, City and several numerical values. What I want to do is to create a column chart with drilling option - without drilling. 🙂

So I'd have 3 slicers (country, region, store) and several IF THEN options. IF nothing is filtered the chart would show data on country level. If country is filtered it'd show data on region level (for the selected country). If region is filtered it'd show data on city level (for the selected country / region). If city is filtered it'd show data for that one city alone.

 

My first thought was to create a calculated column that'd copy the values from one of the columns based on the ISFILTERED function but because calculated columns are initialized on data load and not on user interaction it wouldn't work.

 

So here's my question: is it possible to create something like this?


@Warhawk

AFAIK, it is not possible at this moment, the X axis won't change without a manually drill down. You can submit your idea at Power BI Ideas and vote it up.

View solution in original post

1 REPLY 1
Eric_Zhang
Microsoft Employee
Microsoft Employee


@Warhawk wrote:

Hi BI Masters!

 

I'm fairly new in the world of Power BI and came accross a problem that's puzzling me for quite some time now.

I have a table with columns for Country, Region, City and several numerical values. What I want to do is to create a column chart with drilling option - without drilling. 🙂

So I'd have 3 slicers (country, region, store) and several IF THEN options. IF nothing is filtered the chart would show data on country level. If country is filtered it'd show data on region level (for the selected country). If region is filtered it'd show data on city level (for the selected country / region). If city is filtered it'd show data for that one city alone.

 

My first thought was to create a calculated column that'd copy the values from one of the columns based on the ISFILTERED function but because calculated columns are initialized on data load and not on user interaction it wouldn't work.

 

So here's my question: is it possible to create something like this?


@Warhawk

AFAIK, it is not possible at this moment, the X axis won't change without a manually drill down. You can submit your idea at Power BI Ideas and vote it up.

Helpful resources

Announcements
ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.