Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Pivot/Unpivot in a DAX measure function.

So I was wondering if it was possible to Pivot/Unpivot some columns in a table without having to do it in query editor, is this possible?

 

*The reason why I ask is that when I pivot the table my previously correct measures become incorrect. I did try splittling the table into 2 but then I can not have more than one active relationship so when I filter with Table 1 the results from Table 2 are unfiltered. 

2 Replies

  • v-yuta-msft's avatar
    v-yuta-msft
    Community Support

    Anonymous ,

     

    If the rows are too much in your table, it's not suggested(sometimes impossible) to generate a pivot table because dax can't generate column name by row values automatically, as a workaround, I would suggest you to create a matrix visual instead.

     

    Community Support Team _ Jimmy Tao

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