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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
NOVICE02
Helper III
Helper III

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

 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
Icey
Community Support
Community Support

Hi @NOVICE02 ,

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

 

Best Regards,

Icey

Anonymous
Not applicable

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

Hi @NOVICE02,

 

could you provide sample data or a screenshot of the data 

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast


 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"))

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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