Forum Discussion
baBI123
8 years agoHelper II
Delete rows containing certain text
Hi all, I have the above information already in POWER BI. I need to know how I can eliminate the rows in the Part Number column that contain "shipping supplies", "shop supplies, ", "office ...
- 8 years ago
SUMMARIZE PO = SUMMARIZE ( Filter('Purchase Order History', Not( 'Purchase Order History'[Part Number] in { "Shipping Supplier", "Shop Supplies", "Office Supplies", "Handling" } ) ) , 'PURCHASE ORDER HISTORY'[Part Number], "TOTAL COST", SUM ( 'PURCHASE ORDER HISTORY'[PN Total Cost] ), "Quantity Ordered", SUM ( 'PURCHASE ORDER HISTORY'[Qty Ordered] ), "PO list", CONCATENATEX ( 'PURCHASE ORDER HISTORY', 'PURCHASE ORDER HISTORY'[Purchase Order #], ", " ) )
parry2k
8 years agoSuper User
change following in your formula after summarize:
Filter('Purchase Order History',
Not(
'Purchase Order History'[Part Number]
in {
"Shipping Supplier",
"Shop Supplies",
"Office Supplies",
"Handling
}
)
)- parry2k8 years agoSuper User
just the bracket after summarize , replace 'Purchase Order History' with my formula then comma and continue on.
If you past your formula as text i will update it, because you pasted image and i'm lazy to type all your formula in there :(
- baBI1238 years agoHelper II
parry2k done deal :) Thanks for helping me out!
SUMMARIZE PO =
SUMMARIZE (
'PURCHASE ORDER HISTORY',
'PURCHASE ORDER HISTORY'[Part Number],
"TOTAL COST", SUM ( 'PURCHASE ORDER HISTORY'[PN Total Cost] ),
"Quantity Ordered", SUM ( 'PURCHASE ORDER HISTORY'[Qty Ordered] ),
"PO list", CONCATENATEX ( 'PURCHASE ORDER HISTORY', 'PURCHASE ORDER HISTORY'[Purchase Order #], ", " )
)- parry2k8 years agoSuper User
SUMMARIZE PO = SUMMARIZE ( Filter('Purchase Order History', Not( 'Purchase Order History'[Part Number] in { "Shipping Supplier", "Shop Supplies", "Office Supplies", "Handling" } ) ) , 'PURCHASE ORDER HISTORY'[Part Number], "TOTAL COST", SUM ( 'PURCHASE ORDER HISTORY'[PN Total Cost] ), "Quantity Ordered", SUM ( 'PURCHASE ORDER HISTORY'[Qty Ordered] ), "PO list", CONCATENATEX ( 'PURCHASE ORDER HISTORY', 'PURCHASE ORDER HISTORY'[Purchase Order #], ", " ) )