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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

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
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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