Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
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
Solved! Go to 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
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:
Hi,
Your question is not clear. Show a dataset and the expected result.
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
This actually is not allowed in my case because a single value for the TRUE/FALSE data type field "Active Schedule" cannot be determined
Can you figure out why it is not working?
You might be trying to create a measure. Try a calculated column instead.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
117 | |
84 | |
49 | |
38 | |
28 |
User | Count |
---|---|
188 | |
76 | |
73 | |
54 | |
42 |