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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

Don´t Convert text to true/false in Calculate

In Calculate, i'm don't can filtering a result.

ERROR: Not is possible convert text value to true/false.

Thanks, for now!

Gustavo035839_0-1673460114304.png

 

2 REPLIES 2
vicky_
Super User
Super User

I think it's because DiasUteis[AnoMes] is a value (e.g. 1 or 0). It can't be used as a filter because it doesn't evaluate to either True or False. If you need to use it as a filter condition for CALCULATE, replace that with FILTER( DiasUteis, DiasUteis[AnoMes] = yourConditionHere).

Else, you will need to go into more detail on what you want to do with that field for anyone to provide more detailed help.

Anonymous
Not applicable

Good afternoon.
I need a formula to calculate a today condition (automatic) in this situation.
*The field "2023-01" it a example an a what i need.*

Gustavo035839_0-1673630687980.png

 

Im using this filter in the card:

Gustavo035839_1-1673630783610.png

 




Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.