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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Pbiuserr
Post Prodigy
Post Prodigy

Unpivoting columns

Hello

How to make the table down below in PowerQuery so the 99 in first column instead of null and third column does not exist?

 

Capture2.PNG

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Pbiuserr ,

 

You can use conditional columns in Power Query Editor to solve the problem. For example.

Table.

vcgaomsft_2-1649327026605.png

Add conditional column.

vcgaomsft_1-1649326979099.png

vcgaomsft_0-1649326887940.png

vcgaomsft_3-1649327104275.png

Remove unwanted columns.

vcgaomsft_4-1649327167237.png

Close and apply.

 

Attach the PBIX file for reference. Hope it helps.

 

Best Regards,
Community Support Team_Gao

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Pbiuserr ,

 

You can use conditional columns in Power Query Editor to solve the problem. For example.

Table.

vcgaomsft_2-1649327026605.png

Add conditional column.

vcgaomsft_1-1649326979099.png

vcgaomsft_0-1649326887940.png

vcgaomsft_3-1649327104275.png

Remove unwanted columns.

vcgaomsft_4-1649327167237.png

Close and apply.

 

Attach the PBIX file for reference. Hope it helps.

 

Best Regards,
Community Support Team_Gao

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

amitchandak
Super User
Super User

@Pbiuserr , Fill up is one option I can think of.

Fill Up Fill Down: https://youtu.be/mC2ps0pFqBI

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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