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
Jame5_Blonde2
Helper I
Helper I

Changing name of a measure results in broken visuals in related reports

Hi,

 

I have dataset that has evolved to a bloddy mess and i need to change names and create new hometables to my measures.

 

Everything works fine in the dataset/report itself but all my related reports (based on live connection on this dataset) will not follow. I get an error regarding the "old" measure name.

 

Example

I´ve ONLY changed a measure name in this case. 

from 

"MES RevenueInclFloor"

to

"MES RevenueInclFloor_new"

 

test.JPG

 

 

 

Is this by design or something for you to work on?

 

Version: Power BI Desktop (version Feb 2020)

1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hi @Jame5_Blonde2 ,

 

I find this issue has already been submitted to Power BI Product Team: Incident 183349247. I will update in time.

 

 

Best Regards,

Icey

View solution in original post

14 REPLIES 14
lcs26481
Frequent Visitor

@Greg_Deckler You replied to this post and I know you are very helpful Super User. 

Has anyone heard of a solution (or better workaround) to this problem that was posted in 2020? I'm still having this same "by design" issue and as @Jame5_Blonde2 said, it's a major issue when the model is messy and bloated as mine is. I'm trying to correct that, which is why renaming measures is helpful. If it's a simple field in a card that is an easy fix (although time consuming), but if you've done any kind of custom formatting for colors in charts or any conditioning formatting at all, it all breaks and you have to redo it. You better have kept a copy of what you have on hand before making the changes so you can refer to how you designed it originally, or you'll be left guessing what is broken and what needs to be fixed. The ever helpful "this field has been deleted..." in the field pane is useless, but at least the Visual's "Fix this....See Details" tells you the field. 

 

Has anyone out there come up with a better way to manage? 

@lcs26481 I don't know if there is any easy way to fix this or if it is even possible within the product. The issue I am considering is that you are connected to a Live model and you have visuals based on measures that you are renaming for example. The issue is, if this was all in a single PBIX file you could change names of things and everything would essentially work because Power BI Desktop effectively knows where that measure is used and can update DAX code and references within visuals to reflect the new name. However, that PBIX file has no idea who what other PBIX files are connected to it so it cannot update the references for visuals in these other PBIX files.

 

Pretty sure this is the scenario that is breaking here. The only way to fix something like this would be to store these changes/renames in a hidden table in the model and each time a PBIX connected Live/DQ it could check that table and make the necessary changes as if the rename had happened within the current instance of Power BI Desktop. Note that this will also be the same issue if you create a local measure within a connected PBIX file that references a measure that has changed names.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Thanks @Greg_Deckler for the info. I agree with your analysis. I was trying to research others who might have a different solution and came across this post that is exactly what we're all trying to do. https://data-goblins.com/power-bi/replace-report-measures

 

I'm not promoting this as a solution or commenting on the validity of this tool. I'm just adding it as a point of reference for anyone researching this. 

 

I'm new(ish) to Power BI (2 years) and have not gotten into the 3rd party tools yet except for some minor things in Tabular Editor. Has anyone heard of this tool? Or used it? Had success? Seems like it could be used for so much more but I'm really trying to target in on this one thing....renaming measures cleanly in thin client files. 

 

There are a number of YouTube videos on this I'll be watching to see what it has to offer. @Jame5_Blonde2 Check it out. 

Jame5_Blonde2
Helper I
Helper I

Is this fixed, any update?

Icey
Community Support
Community Support

Hi @Jame5_Blonde2 ,

 

Microsoft reply:

 

By design. The report (specifically the field name used by a visual) is independent of the model, and isn’t aware of the field being renamed. Customer needs to fix the visual in Desktop and publish or modify on the web and save. Model changes like rename don't flow out to all the reports that could have been created off of them.

 

 

It is similar to my previous explanation (Message 7).

 

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Icey
Community Support
Community Support

Hi @Jame5_Blonde2 ,

 

I find this issue has already been submitted to Power BI Product Team: Incident 183349247. I will update in time.

 

 

Best Regards,

Icey

Hi and thanks for the replies!

 

How did you know that this already issue is reported "Power BI Product Team: Incident 183349247"?

Can i find this my self somewhere?

 
Yes, please update us when this is fixed, as sdaid before this dataset is HUGE and has alot of related reports built upon it. 

We have to be able to make changes in names and locations of meassures post creation of solutions. 

 

Thanks. 

 

 

Hi @Jame5_Blonde2 ,

 

This is reported internally. The Incident Number is 183349247. It is not visible to you, so it can't be shared with you. And I will tell you if there are any updates.

 

 

Best Regards,

Icey

Icey
Community Support
Community Support

Hi @Jame5_Blonde2 ,

 
Please try to delete the dataset and report in Power BI Service, and then republish the report from Power BI Desktop to Service.
 
 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Following steps has been made

 

 

1. Service : Removed report "testonrelated"

2. Service : Removed dataset "Test"

3. Desktop : Opened and republished dataset "Test"

4. Desktop : Opened report "testonrelated". It prompts reconnect to dataset, "Test" is choosed

5. Desktop : Same error message. fel2.JPG

Hi @Jame5_Blonde2 ,

 

I have tested. The same error. 

I thought about the cause of the problem:

After you change the name of your measure, in the related report, the underlying dataset has been changed. Power BI can't find the measure.

Just like this situation:

After connecting one Excel file and creating some visuals, you open the Excel file, change one column name and save. Then refresh the report, you will see this error:

test.PNG

 

The principle is similar. So, it is suggested to replace the measures manually in related reports.

 

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

In order to delete the dataset i had to remove related reports aswell.  

Following steps had to be made. 

 

1. Delete report "testontrelated"

2. Deleted dataset "test"

3. Republished dataset "test"

4. Opened report testonrelated in PBI desktop (had to choose the dataset test again). 

5. same error in dekstop 😞 - the correct measure name is MES_Revenue_new

 

fel2.JPG

Greg_Deckler
Super User
Super User

No, in general you can change those but it gets tricky sometimes. Sometimes with very complex DAX code when you rename something not all of the code gets the name change and you have to manually fix it. In terms of changing home tables, that is probably because someone didn't specify the table name in front of column references.

@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Thanks for your reply, it´s actualy the first time i have written in these forums.

The measure I hade in the example is not complex and very straight  SUM here is a new example. 

I will demonstrate further. 

 

This is the report which i want as a base datasetThis is the report which i want as a base dataset

 

 

 

 

This is the value on this measure in a new report built with the first datasetThis is the value on this measure in a new report built with the first dataset

 

 

 

 

Lets change the measure name and publish my datsetLets change the measure name and publish my datset

 

 

 

 

back to the report depended on this datasetback to the report depended on this dataset

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.

Top Solution Authors
Top Kudoed Authors