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
nirvana_moksh
Impactful Individual
Impactful Individual

DAX Involving TRUE/FALSE Column

Hello Community,

 

How do you deal with writing a DAX Statement that invloves a column that is of data type TRUE/FALSE without converting it to text and making it to work?

 

 

Thank You

1 ACCEPTED SOLUTION

Hi @nirvana_moksh,

 

Maybe you need something similar to below. Here [Column1] comtains 'TRUE/FALSE' data type values.

New column = 
IF ( Table[Column1] = TRUE (), 1, 0 )

Regards,

Yuliana Gu

 

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

7 REPLIES 7
idkwhatimdoing
Advocate I
Advocate I

@NKL make sure you're adding a column and not a measure

besides, you don't have to create a column or measure to count the #'s of true/false fields. Just use counta in a measure:

CALCULATE(
    COUNTA('Table'[Column]),
    'Table'[Column] IN { TRUE() }
Ashish_Mathur
Super User
Super User

Hi,

 

Your question is not clear.  Show a dataset and the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

So I was using a calculated IF statement and it was using a column which was 'TRUE/FALSE' data type and for some reason the DAX did not recognize that and I had to convert that column to Text for it to work

Hi @nirvana_moksh,

 

Maybe you need something similar to below. Here [Column1] comtains 'TRUE/FALSE' data type values.

New column = 
IF ( Table[Column1] = TRUE (), 1, 0 )

Regards,

Yuliana Gu

 

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

This actually is not allowed in my case because a single value for the TRUE/FALSE data type field "Active Schedule" cannot be determined

NKL_0-1685532016601.png

Can you figure out why it is not working?

 

Smamwise
Frequent Visitor

You might be trying to create a measure. Try a calculated column instead.

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.