cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Meeskass
Helper I
Helper I

Unable to delete measures after changing data source location

Hi everyone!

 

I am facing an annoying bug/issue.

Previously I had developed a PBI report, with some measures here and there. 

At one point, it was necessary to switch from the testing dataset to the PBI dataset, but not all the measures were aligned.

Now I am unable to delete some of the measures that do not work anymore (See screenshot).

When I press on the 'three dots' for more options, it simply displays "Something went wrong" error.
What to do? Thansk!!!

 

Pictures:

Meeskass_0-1671580460365.pngMeasures with errors. Cannot be opened, viewed, edited, deleted. 

 

Error message:

Meeskass_1-1671580519714.png

 

 

1 ACCEPTED SOLUTION

Yes exactly!

And I did find a solution just a couple of minutes ago.

It might be a bug inside Power BI or just my own low level of brain capacity hah

The scenario was that the PBI report had some measures with the same name as the new Live PBI dataset that I connected to. This led to having measures with duplicate names and PBI doesn't like that, which resulted in one of those measures to be 'broken' as on the picture. 
Even though I was not able to delete the broken measures directly, as it simply gave me an error, I was still able to rename the broken measures and then delete them 🙂

View solution in original post

8 REPLIES 8

I would suggest this actually is a bug. I've had this exact same issue. In the past, I've been able to right click and "delete from model", but that no longer works consistently (sometimes it does, usually it doesn't). When it doesn't work, there is no error. It just doesn't do anything.

 

Renaming and then deleting is not a good solution. Here is why:

 

My use case: I have a live connection to SSAS tabular. I create a custom measure within the PBIX file named "Widget Count", and build out a number of pages of content using this custom measure. It's such a useful measure, I have it built into the SSAS tabular model itself with the same name. So when I delete the custom measure in my file, all my reports will already work because they'll find the name. If I have to rename before I delete, I'll need to update every view with the new measure, which can be a lot of work, especially when you've formatted the view with certain colors/styles/conditional formats/etc.

 

The renaming option is only good if the measure in your file has a different intent/definition than the duplicate that was created.

 

I'm using this version:

Microsoft Power BI Desktop (Optimized for Power BI Report Server - May 2022)

transform99
Resolver I
Resolver I

Right click the measure, select Delete From Model

Doesn't work. Can't even right click. When I right click, it pops up the error message above.

Have you tried deleting them with Tabular Editor?

Pat

 

Microsoft Employee

That's actually a good idea, unfortunately the issue is in the PBI report that is conected to a PBI dataset, in which case the Tabular editor doesn't work. It works on the dataset report itself, however there is no issue there, its only on the visual report that connects to PBI dataset. 

sorry, but to confirm are you trying to delete these measures out of a PBIX that has a live connection to a published dataset?

Yes exactly!

And I did find a solution just a couple of minutes ago.

It might be a bug inside Power BI or just my own low level of brain capacity hah

The scenario was that the PBI report had some measures with the same name as the new Live PBI dataset that I connected to. This led to having measures with duplicate names and PBI doesn't like that, which resulted in one of those measures to be 'broken' as on the picture. 
Even though I was not able to delete the broken measures directly, as it simply gave me an error, I was still able to rename the broken measures and then delete them 🙂

good job on the find, it was going to be my next suggestion. I was making the assumption you were working inside of a PBIX where you had imported data, not done a live connection.

 

as an FYI it's not a bug. Depending upon organisational structure a published dataset could have measures and calculated columns built into it for all content creators to access. If the dataset is governed and shared with multiple content creators (single source of truth etc.) then PBIX files that create a live connection to the dataset can not create calculated columns, but only measures.

 

Measures published in the original dataset will be available for all users, however measures created on your live connect PBIX will only be accessible and visible to users who have access to your unique PBIX file.

 

If there's a conflict the resolution is to re-name the measure (as you have done), or access the dataset and rename/delete the measures in the dataset file.

Helpful resources

Announcements
Join Arun Ulag at MPPC23

Join Arun Ulag at MPPC23

Get a sneak peek into this year's Power Platform Conference Keynote.

PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Top Solution Authors