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

Unpivot of dax data

I have a problem regarding unpivot of a dax data table.

The data is as following:

 

 

212.pngThe Black part is kept as is, while the yellow part is what I need to unpivot so it ends with 2 columns:

The title as parameters and the values on the other column.

 

1 ACCEPTED SOLUTION

hi, @Anonymous 

If you want to unpivot the data by dax, you could try this way:

https://community.powerbi.com/t5/Quick-Measures-Gallery/DAX-Unpivot/td-p/574832

 

Best Regards,

Lin

 

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

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous ,

 

here, i am sharing my screenshots how I converted unpivot columns. 

 

1. this is my Excel data(see, I have null values means this all are empty cells )

 

Capture.JPG

 

2. after I replace "null" values into "0" 

 

Capture1.JPG

 

3. I select all columns by using cntl option (Excepts first two columns)

4. see, we have Transform tab one option is there Unpivot Columns

 

Capture4.JPG

 

5. click unpiovt option, after we are getting result like this.

 

Capture2.JPG

 

6. change column name

 

Capture3.JPG

 

regards,

Naveen

Anonymous
Not applicable

I know about the power query method. The reason I did not use it is because I have calculations in the columns. But I have somehow found a youtube that may get me through. thanks anyways.

hi, @Anonymous 

If you want to unpivot the data by dax, you could try this way:

https://community.powerbi.com/t5/Quick-Measures-Gallery/DAX-Unpivot/td-p/574832

 

Best Regards,

Lin

 

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

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.