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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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

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

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

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

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

 

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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