cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
NOVICE02 Frequent Visitor
Frequent Visitor

How can i filter by string and numeric

Hello,

 

hoping someone has an idea...

 

I wrote the following formula:

 

Handled = CALCULATE(DISTINCTCOUNTNOBLANK('Inbound Data'[ban]),FILTER('Inbound Data','Inbound Data'[calls_handled]="Y")
,FILTER('Inbound Data','Inbound Data'[AR_balance]<>0))
 
I get the error saying that the comparison cannot be supported and to use value or format to convert one of the values
but i can't seem to get it to work
1 ACCEPTED SOLUTION

Accepted Solutions
NOVICE02 Frequent Visitor
Frequent Visitor

Re: How can i filter by string and numeric

 Hi!,

 

I just solved it. I changed the numeric column to text and then added the filter to that column...

 

Handled_Calls2 = CALCULATE(DISTINCTCOUNTNOBLANK('Inbound Data'[ban]),FILTER('Inbound Data','Inbound Data'[calls_handled]="Y"),
FILTER('Inbound Data','Inbound Data'[AR_BALANCE1]<> "0"))

View solution in original post

4 REPLIES 4
mwegener New Contributor
New Contributor

Re: How can i filter by string and numeric

Hi @NOVICE02,

 

could you provide sample data or a screenshot of the data 

NOVICE02 Frequent Visitor
Frequent Visitor

Re: How can i filter by string and numeric

 Hi!,

 

I just solved it. I changed the numeric column to text and then added the filter to that column...

 

Handled_Calls2 = CALCULATE(DISTINCTCOUNTNOBLANK('Inbound Data'[ban]),FILTER('Inbound Data','Inbound Data'[calls_handled]="Y"),
FILTER('Inbound Data','Inbound Data'[AR_BALANCE1]<> "0"))

View solution in original post

tsantandreu Member
Member

Re: How can i filter by string and numeric

Try to run your calculation with one filter at a time to see which of the filters is causing the problem.

Also, what are the data type for the two columns in the table filter?

 

Thank you

Tomas Santandreu Polanco |Principal Business Intelligence Consultant
www.designmind.com

Icey Super Contributor
Super Contributor

Re: How can i filter by string and numeric

Hi @NOVICE02 ,

Glad to hear that. Please accept your reply above as a solution.

 

Best Regards,

Icey

Helpful resources

Announcements
New Ranks and Rank Icons in 2020

New Ranks and Rank Icons in 2020

Read the announcement for more information!

New Kudos Given Badges Coming

New Kudos Given Badges Coming

We're rolling out new Kudos Given badges. Find out how many Kudos you've given.

November 2019 Community Highlights

November 2019 Community Highlights

Get an overview of the events and great community content from November.

Power Platform World Tour

Power Platform World Tour

Find out where you can attend!

Top Solution Authors
Top Kudoed Authors (Last 30 Days)