Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I have a Calculated field showing where I need to see how many installs are pending from 0-14 days the calcualtion is:0-14 Days = 'Drop Installs'[Days Past Due]<=14 (I got the Days Past Due from another calculation if this info is needed: (Days Past Due = TODAY() -'Drop Installs'[Splicer Due Date])
How can I convert True/False to 1 and 0
I have treid the following but receive errors:
SWITCH (Drop Installs'[0-14 Days], "TRUE", "1", "FALSE", "0" )
INT('0-14 Days'[TRUE1] = '0-14 Days'[FALSE0])
This just returns the same count for ture and false:
Solved! Go to Solution.
Hi @CatieBeth ,
I created some mockup data:
And I used this measure:
BooleanMeasure = CALCULATE ( COUNTROWS ( TableBoolean ), TableBoolean[Boolean] = true )
And I got the correct result:
Maybe you wanna try the same syntax as my statement above to start with?
Let me know if this helps 🙂
/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/
| Did I answer your question❓➡️ Please, mark my post as a solution ✔️ |
| Also happily accepting Kudos 🙂 |
| Feel free to connect with me on LinkedIn! | |
| #proudtobeasuperuser | |
That worked!! Thank you so much!!!
Hi @CatieBeth ,
I created some mockup data:
And I used this measure:
BooleanMeasure = CALCULATE ( COUNTROWS ( TableBoolean ), TableBoolean[Boolean] = true )
And I got the correct result:
Maybe you wanna try the same syntax as my statement above to start with?
Let me know if this helps 🙂
/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/
| Did I answer your question❓➡️ Please, mark my post as a solution ✔️ |
| Also happily accepting Kudos 🙂 |
| Feel free to connect with me on LinkedIn! | |
| #proudtobeasuperuser | |
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 7 | |
| 7 | |
| 5 | |
| 4 | |
| 3 |
| User | Count |
|---|---|
| 14 | |
| 14 | |
| 10 | |
| 8 | |
| 8 |