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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
AndrewPF
Helper V
Helper V

change variable from text to numeric - visual filter no longer works

I have a basic bar chart with business name as X-axis and score as Y-axis. 

I have also applied some filters to restrict the data being displayed. 

One of these filters used a field of type text. 

However, when I changed the field to Int64.Type, the visual seemed to ignore the filter. 

I have tried reapplying the filter.  I have tried changing the filter from basic to advanced.  I cannot get it to work. 

Does anyone know what's happening?  This feels like a bug. 

I have the latest version of Power BI. 

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @AndrewPF 
Text and numbers filters are behaving differently.
The text has functionalities as :

Ritaf1983_0-1694255373812.png

When at numbers you should use mathematical operators + logical and/or

Ritaf1983_1-1694255464449.png

Ritaf1983_2-1694255490374.png

So if you change the data type of your filter field you need to modify it according to its options.
For a more detailed explanation please attach a link to some dummy file.
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

 

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

1 REPLY 1
Ritaf1983
Super User
Super User

Hi @AndrewPF 
Text and numbers filters are behaving differently.
The text has functionalities as :

Ritaf1983_0-1694255373812.png

When at numbers you should use mathematical operators + logical and/or

Ritaf1983_1-1694255464449.png

Ritaf1983_2-1694255490374.png

So if you change the data type of your filter field you need to modify it according to its options.
For a more detailed explanation please attach a link to some dummy file.
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

 

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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