Power BI Remove Rows

rkrt1

New Member
Joined
Jul 24, 2022
Messages
19
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
Hello Dear Fellows
  1. I have a dataset of 6500 rows.
  2. Required to keep only rows where "Function (Label)" = IT (not via filter option)
  3. The source data file is weekly updated having the same structure
Required:
I am looking for a way to delete all those rows (point 2) using a function/formula so that every time when the source data file is updated, the transformation steps happen and I get the final data (rows with "IT" only).

1666773761122.png


Please help.

Cheers
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Something like this
1666782046428.png

Power Query:
#"Removed IT Rows" = Table.SelectRows(#"Changed Type", each not List.IsEmpty(List.RemoveMatchingItems({[Column2]}, {"IT"})))
in
    #"Removed IT Rows"
 
Upvote 0
Obviously rename [column 2] to [Function (Label)]in the formula
 
Upvote 0
Something like this
View attachment 77068
Power Query:
#"Removed IT Rows" = Table.SelectRows(#"Changed Type", each not List.IsEmpty(List.RemoveMatchingItems({[Column2]}, {"IT"})))
in
    #"Removed IT Rows"
Hi @Kerryx

Thanks for the reply.
I tried both ways but its not working :(

Via M-Code:
1666818743702.png



Via Function in Applied Steps:

1666818907241.png


Can you pls help.
Thank you
 

Attachments

  • 1666818643010.png
    1666818643010.png
    9 KB · Views: 2
Upvote 0
Would this work for you
Power Query:
#"Grouped Rows" = Table.Group(#"Changed Type1", {"Function (Label)"}, {{"Count", each _, type table [#"Function ( externalCode)"=nullable number, #"Function (Label)"=nullable text]}}),
    IT = #"Grouped Rows"{[#"Function (Label)"="IT"]}[Count]
in
    IT
1666860178508.png
 
Upvote 0

Forum statistics

Threads
1,223,993
Messages
6,175,838
Members
452,675
Latest member
duongtruc1610

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top