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
eddydm
Advocate II
Advocate II

How to delete records in a table?

I'm using a table in Desktop Power BI in which one of the fields (distributionID) sometimes has the value -1. Then this record has not to be included in the calculations. Those records prevents me to relate this table to another table with more information about this distribution.

 

How can I delete those records (distributionID = -1) in Power BI Desktop.

 

I can solve this problem in the original data by adapting the sql-view i'm using to import this data, but i like to keep the number of views as low as possible, but I want also to keep the imported data as close as possible to the real data.

I know i can solve the problem by adapting each measure to a calculate instruction where i can add a filter (distributionID <> -1).

 

Thanks in advance for any suggestion.

 

1 ACCEPTED SOLUTION
Baskar
Resident Rockstar
Resident Rockstar

Hey buddy

 

I understand your prob like this way,

u have to remove the record which distributionID = -1 correct ? if yes pls follow this stepd

 

go to Query Editor window, and pick your column(distributionID)  click the downarrow

 

 

1212.PNG

 

chose number filter and pick is "Doesnot equal option" from there

and

1313.PNG

 

 

lets try

View solution in original post

1 REPLY 1
Baskar
Resident Rockstar
Resident Rockstar

Hey buddy

 

I understand your prob like this way,

u have to remove the record which distributionID = -1 correct ? if yes pls follow this stepd

 

go to Query Editor window, and pick your column(distributionID)  click the downarrow

 

 

1212.PNG

 

chose number filter and pick is "Doesnot equal option" from there

and

1313.PNG

 

 

lets try

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.