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

Source File Columns I Don't Want In My Data Model

Dear Community, 

 

I am using source file as the below one:

 

1.PNG

 

However, my organization is making changes constantly, and starting today i have 2 more columns, which i don't want to see at all. As you can imagine my whole data model suffers because of this change. Can someone help me keep my original structure of the report? Below are the new ones:

 

2.PNG

 

Thank you!

 

Atanas

1 ACCEPTED SOLUTION
ImkeF
Community Champion
Community Champion

Hi @Anonymous ,

click on the first step of your query with your mouse and do the selection.

This will automatically insert a step for you.

 

image.png

 

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

View solution in original post

8 REPLIES 8
nvprasad
Solution Sage
Solution Sage

Hi

 

The other workaround within PowerBI is, In PowerQuery Editor do the following steps.

1. Do the unpivot transformation to get all the groups into one column

2. Split using delimiter then regroup using first & last value as per your exiting group logic

3. Pivot it back.

 

Thanks 

Venkata Nalla

Did I answer your question? Mark my post as a solution! Appreciate your Kudos.
Follow me on LinkedIn.
ImkeF
Community Champion
Community Champion

Hi @Anonymous ,

as the first step before all other transformations:

  • Check the column you want to keep
  • Righclick the mouse
  • Click: Remove other columns

This will keep your column names clean and managable.

 

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

Anonymous
Not applicable

@ImkeF 

 

thank you, but how do i put that in context? I already applied many steps to transform my data (with the old structure). Should i apply that as an additional step? 

thank you,

 

Atanas

ImkeF
Community Champion
Community Champion

Hi @Anonymous ,

click on the first step of your query with your mouse and do the selection.

This will automatically insert a step for you.

 

image.png

 

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

Anonymous
Not applicable

@ImkeF 

 

Dear Imke, 

 

It worked like a charm! Just one adjustment on my end. It worked pretty well after the "promoted headers" step!

 

I don't experience the referesh problem anymore. Thank you for this information!!!

 

@amitchandak 

 

Thank you for your quick reply and adding Imke to to the discussion!

 

One last thing. Here's a link to a webinar hosted by Chriss Webb: https://www.youtube.com/watch?v=mGnNn6gnrKk

 

It focuses on pretty same problems. Hope it will help you as well. 

 

Stay safe!

 

Atanas

nvprasad
Solution Sage
Solution Sage

Hi

 

The other workaround within PowerBI is, In PowerQuery Editor do the following steps.

1. Do the unpivot transformation to get all the groups into one column

2. Split using delimiter then regroup as per your exiting logic

3. Pivot it back.

 

Thanks 

Venkata Nalla

Did I answer your question? Mark my post as a solution! Appreciate your Kudos.
Follow me on LinkedIn.
amitchandak
Super User
Super User

@Anonymous , The best way is to keep the data model stable or add columns at the end. In this way, I do not think you can avoid changes to data model.

 

@ImkeF , Any suggestions on this

 

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
Anonymous
Not applicable

@amitchandak 

 

Thank you Sir!

 

I do realize that, but no one asked me when they submitted the request to IT...

 

I would really appreciate any help...

 

Atanas

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.