Power Query: Cannot Filter Out on Dashes (-)

legalhustler

Well-known Member
Joined
Jun 5, 2014
Messages
1,160
Office Version
  1. 365
Platform
  1. Windows
I want to remove dashes i.e. "-" from my PQ table. However, I have some dollar values that are negative. If I try to Replace Values it will removes the dash from dollar values as well. How can I just filter out the fields that just has a dash.

Can someone advise.

TIA!
 
Last edited:

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
If I try to filter on a single column that has a dash then it will remove the corresponding column row which has a dollar value as well, but I don't need these filtered out. The column data type is text, but I need it to be a currency. If I convert to currency, the dashes will give me a "Error" bc it is not a number.
 
Last edited:
Upvote 0
Hello.
one way is to use Duplicate column first -> Transform Column Types to number (as you know) -> Replace Error Values with nulls and -> filtr out null from the second column (duplicated column) and you'll get it.
(it'll better to see your data example)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,415
Messages
6,119,382
Members
448,889
Latest member
TS_711

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