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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Split the unique row into multiple rows in a new table based on the the Y/N columns

Hi All,

 

I am looking to split the unique row into multiple rows in a new table based on the Y/N columns to the unique data. For examaple I would like to have two rows the Incident ID "3256031" with a column veh Type with Car and Good vehicle in it.

Current data

 

GautamRajGodav_0-1600273562086.png

 

Required Output:

 

GautamRajGodav_1-1600273726446.png

 

Thanks for your help in  advance.

 

Thanks and regards

Gautam

 

1 ACCEPTED SOLUTION
Pragati11
Super User
Super User

Hi @Anonymous ,

 

You can try doing thiss in Query Editor in Power BI.

 

Consider following smaple data:

Pragati11_0-1600274864489.png

Then selected the Car and Goods Vehicle columns and Unpivot them:

Pragati11_1-1600274918174.png

 

You end up following:

Pragati11_2-1600274968672.png

 You can rename the resulting columns as per your requirement.

 

Thanks,

Pragati

 

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

View solution in original post

1 REPLY 1
Pragati11
Super User
Super User

Hi @Anonymous ,

 

You can try doing thiss in Query Editor in Power BI.

 

Consider following smaple data:

Pragati11_0-1600274864489.png

Then selected the Car and Goods Vehicle columns and Unpivot them:

Pragati11_1-1600274918174.png

 

You end up following:

Pragati11_2-1600274968672.png

 You can rename the resulting columns as per your requirement.

 

Thanks,

Pragati

 

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.