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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
MCDyna
Helper I
Helper I

Change column name based on list

Hi Community,

 

I have a simple example file for my problem..

 

Two stores send me the same info, but with different column names. I have a table with the "old" names, and the "new" names I want them to transfer to.

 

What formula do I need to get this?Schermafbeelding 2022-03-02 083055.png

 

 

The sample file:

The link 

 

5 REPLIES 5
v-jayw-msft
Community Support
Community Support

Hi @MCDyna ,

 

Currently we can only manually change the column name or table name.

There is a trick that you could create visuals for both new and old table then show different visuals based on specific condition.

https://www.linkedin.com/pulse/show-different-visuals-based-condition-power-bi-alina-fisher 

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

Thanks Jay. 

 

Wouldn't a DAX script work in the form of:

 

take column 'location' and change it to 'city' & take column 'value' and change it to 'totals'

 

 

Hi @MCDyna ,

 

Value could be changed, but the column header could not.

You could refer this topic.

https://community.powerbi.com/t5/Desktop/Display-data-from-the-same-column-with-different-format/m-p... 

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
amitchandak
Super User
Super User

@MCDyna ,The information you have provided is not making the problem clear to me. Can you please explain with an example?
Check if userelationship can help

https://radacad.com/userelationship-or-role-playing-dimension-dealing-with-inactive-relationships-in...
Appreciate your Kudos.

Hi Amit, here is a link to the file https://www.file.io/2ar2/download/vnasaZlP8CbZ 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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