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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. 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
v-junyant-msft
Community Support
Community Support

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 @v-junyant-msft , 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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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