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

How to rename field name in a table

Hi All,

 

I need dax expression to rename the below table

 

MonthYear

July 2017

July 2018

 

I want to rename July 2017 to YTD 2017 and July 2018 to YTD 2018  to use it on my matrix table.

 

How can l achieve this in Power BI

YTD.JPG

3 REPLIES 3
edhans
Super User
Super User

Just create a measure called YTD 2017 and have it reference the July 2017 data. Or rename the column manually, or rename it in Power Query, which can change columns.

 

DAX functions are like Excel functions in that they cannot actually change data, but just calculate it and return results.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting
Anonymous
Not applicable

Hi Ed,

 

Thanks for your responding, can you show an example of the referencing with the measure.

 

 

Thanks

 

Probably = SUM(tablename[July 2017]) or =SUM(July 2017) if it is a measure itself.

 

If that isn't right, post sample data so we can see what the underlying data looks like and how July 2017 is being arrived at.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

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.