Forum Discussion

engrchris's avatar
engrchris
Frequent Visitor
4 years ago
Solved

PowerBI Matrix to Combine Rows with the Same Value

I want to make my Rows combine all same values. What I am getting now is its creating a hierarchy.

 

To combine Calc 1 and Calc2 

 

  • Hi, engrchris 

     

    You can try the following methods.

    Table 2 = 
    Var table1=SUMMARIZE('Table','Table'[ISO],'Table'[Date],'Table'[Calc 1])
    Var table2=SUMMARIZE('Table','Table'[ISO],'Table'[Date],'Table'[Calc 2])
    Var table3=SUMMARIZE('Table','Table'[ISO],'Table'[Date],'Table'[Calc 3])
    Return
    UNION(table1,table2,table3)

    Is this the result you expect?

     

    Best Regards,

    Community Support Team _Charlotte

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

     

4 Replies

  • engrchris's avatar
    engrchris
    Frequent Visitor

    I want to create a matrix

     

    from this:

    ISODateCalc 1Calc 2Calc 3
    ISO-0017-JulCS-001CS-002CS-003
    ISO-00214-JulCS-003  
    ISO-00321-JulCS-002CS-004 
    ISO-00428-JulCS-004  

     

    to this matrix:

     

     7-Jul14-Jul21-Jul28-Jul
    CS-001ISO-001   
    CS-002ISO-001 ISO-003 
    CS-003ISO-001ISO-002  
    CS-004  ISO-003ISO-004
    • Ashish_Mathur's avatar
      Ashish_Mathur
      Super User

      Hi,

      How is your source data table arranged.  Share that in a format that can be pasted in an MS Excel file.

    • v-zhangti's avatar
      v-zhangti
      Community Support

      Hi, engrchris 

       

      You can try the following methods.

      Table 2 = 
      Var table1=SUMMARIZE('Table','Table'[ISO],'Table'[Date],'Table'[Calc 1])
      Var table2=SUMMARIZE('Table','Table'[ISO],'Table'[Date],'Table'[Calc 2])
      Var table3=SUMMARIZE('Table','Table'[ISO],'Table'[Date],'Table'[Calc 3])
      Return
      UNION(table1,table2,table3)

      Is this the result you expect?

       

      Best Regards,

      Community Support Team _Charlotte

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