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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

Dynamically build matrix headers

Hi all,

 

in my sales analysis report I have two slicers selecting user desired scenarios:

PBI_hlpr1_0-1701706678832.png

 

Each slicer is referencing to two disconnected tables looking like this:

PBI_hlpr1_1-1701706678833.png

 

The user can dynamically select Scenario From and Scenario To from related slicers and then via appropriate measures a matrix visual is populated as follows:

 

PBI_hlpr1_0-1701706878618.png

 

I would like a simple way to replace the static headers NSV-1 and NSV with what selected in the slicers so in my case: FY23_BDG1 and FY23_ACT respectively.

I have created a disconnected table:

PBI_hlpr1_1-1701706899438.png

 

aiming to have one line per each header in the matrix but I don’t know how to populate it with selected scenarios (where enhanced).

Is this possible?

 

Many thanks in advance.

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,

Since I don't know what your specific data model looks like, I can only offer suggestions rather than specific solutions:
You can try to create a parameter, then put the parameter into the matrix.
Or you can try the solution in this post of the Message 3:
Solved: Dynamic column header in Matrix - Microsoft Fabric Community

Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Ok @Anonymous , unfortunately that is not my use case as my dynamic column names are not related to dates but rather to scenarios. I will need therefore to create a temporary table where to put the headers and the related measures and then hope that everything is working. I hace watched lot of video on dynamic matrix headers but noone is based on dynamic column names different from dates.

 

Thanks anyway - if I find a way I will let you know.

 

Regards,

C.

Helpful resources

Announcements
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.

March Power BI Update Carousel

Power BI Community Update - March 2026

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