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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
cham
Post Patron
Post Patron

Remove rows

Hi,

 

I'm having data set includes call details. Some calls are replace by other users. So one call can be replace by many users. But i want to get the terminated user details because he is the perosn who resposible for that call.

 

So, I want to delete replaced value and only need to show terminated person details, How can i Do  that?

Please check the below table. I want to remove the highlighted rows.

 

DateCaller IDDestinationStatusRingingTalkingTotalsCostReason
1/12/2018Marry98728892answered0:00:000:00:08  Mary replaced by
 Jack99982725answered0:00:000:00:17  Mary replaced by Jack
 Peter92882882answered0:00:040:01:50  Jack replaced by Peter
 Jude82272882answered0:00:040:00:11  Jude was joined
 Rose82727822answered0:00:000:03:430:06:173.9Terminated by Rose
1/12/2018Chan83773883answered0:00:040:01:500:06:173.9Terminated by Chan
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Add a conditional column to filter out the "replaced" value rows with blanks. Then, remove the blank rows.

 

conditional column.JPG

 

Then in modelling tab, simply filter the blank rows or generate the following Power query code:

 

= Table.SelectRows(#"Changed Type", each [Custom] <> Blank())

 

Please accept the solution if I answered your query.

View solution in original post

4 REPLIES 4
v-juanli-msft
Community Support
Community Support

Hi @cham 

Does sbelanix 's suggestion really help you?

If it does, could you kindly accept it as a solution so others may benefit from it.

If not, please let me know.

 

Best Regards

Maggie

Anonymous
Not applicable

Add a conditional column to filter out the "replaced" value rows with blanks. Then, remove the blank rows.

 

conditional column.JPG

 

Then in modelling tab, simply filter the blank rows or generate the following Power query code:

 

= Table.SelectRows(#"Changed Type", each [Custom] <> Blank())

 

Please accept the solution if I answered your query.

v-juanli-msft
Community Support
Community Support

Hi @cham 

Does the last column "Reason" exsit in your dataset?

or is it written by you here to illustrate the case?

 

If the last column "Reason" doesn't exsit in your dataset, how do i find which rows need to be deleted?

 

Best Regards

Maggie

Hi Maggie,

 

Reason column is exist in my dataset.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

Find out what's new and trending in the Fabric community.