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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Kudoed Authors