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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
Anonymous
Not applicable

Dynamic axis with dynamic grouping/hierarchy

Hi,

I am facing an issue while trying to build a chart with dynamic axis.

My data is in the following format (attached)

Dimension table:
metric data.jpg

Main Table
Result.jpg

I want the report to be something like this: where I can select Chart context for the yaxis(multiple selection) and chart filter for regular slicing of data.

Report.jpg

The chart should look something similar to:(the data is different...but same concept of metric and dimension) Here 3 metrics are used.
SampleChart.jpg

Is that possible?

3 REPLIES 3
v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

Do you want the "Metric name" or the "dimension_name" show on the "yaxis" on the bar chart, then values from the second table show on the "value" as bars?

 

Best Regards

Maggie

Anonymous
Not applicable

Hi Maggie Yes, I want to display the dimension names of the metrics that have been selected in the chart context. Suppose I select 3 metrics A,B,C (in this order) then the chart should show the values sliced by the chart filter with dimensions of C in the y axis which are grouped by dimensions of B, grouped by dimensions of A. Like the last image that I had attached.

Hi @Anonymous 

You could unpivot columns from "m0" to "m10" in main table, then relate the new column with dimension table based on the "metric id", 

next add metric id into "row" bucket of a matrix.

 

Best Regards

Maggie

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.