Forum Discussion

Veblengood's avatar
Veblengood
Helper I
3 years ago
Solved

Combining multiple sections in a matrix

I have a matrix with sales by category in rows and by years (from date table) in columns. At the same time I have a different matrix showing indexes comparing this year sales to last year sales and s...
  • v-yueyunzh-msft's avatar
    3 years ago

    Hi , Veblengood 

    According to your description, you want to combine two Matix visual to one . Right?
    In Power BI Desktop , if you want to realize it , you need to create  a new table as the column headers , like this:

    Then we need use this table as the Matrix's column headers . And then we need to create a measure to judge the column name(We can use SWITCH() or IF() function) and calculate the value in the logic.

     

    Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

     

    Best Regards,

    Aniya Zhang

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