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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

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. 

1 ACCEPTED SOLUTION
Gordonlilj
Solution Sage
Solution Sage

Hi

 

You could try following this and see if its what you're after

DAX Unpivot by Greg_Deckler

View solution in original post

2 REPLIES 2
v-yuta-msft
Community Support
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.

Gordonlilj
Solution Sage
Solution Sage

Hi

 

You could try following this and see if its what you're after

DAX Unpivot by Greg_Deckler

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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