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, get a free DP-600 exam voucher to use by the end of 2024. Register 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
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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