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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
GAURAVVISHALSIN
New Member

Made a custom 3 column to make the matrix dynamic

I was facing an issue with the behavior of columns in a matrix visualization, specifically with how measures are displayed across columns in the Values section. Here’s how I approached the solution:

  1. Matrix Behavior:

    • When dragging fields into the Values section of a matrix, the measures are automatically segregated across all columns in that section.
    • This was not the desired behavior for my report.
  2. Creating a New Table:

    • To address this, I created a new table using DAX with the UNION function.
    • The UNION function allowed me to construct a table that aligned with my requirements.
  3. Using USERELATIONSHIP and Non-Active Relationships:

    • I created a measure utilizing the USERELATIONSHIP function and established a non-active relationship between the new table and the existing data.
    • This setup was essential to control how the data interacts across tables.
  4. Slicer and Matrix Configuration:

    • I placed the historical year from the main table into a slicer.
    • In the matrix, I used the year field from the newly created table.
    • As a result, when a year is selected in the slicer, the matrix displays that selected year along with the other 2-4 columns as required, without automatically segregating the measure. 
      @PowerBl @matrix Dynamic Matrix.png
0 REPLIES 0

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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 Solution Authors