Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
A simple query but one which I can see already on site.
I need to convert True / False text column to number (i.e. True = 1, False = 0)
I know there should be a simple DAX for it but can't locate it.
Also, i presume the Transform data option doesnt cross from Text to Numeric and needs to stay the same for conversion? (i.e. Text to Text)
Thanks
Solved! Go to Solution.
Hi @Smithy33
Create a new column:
Columnnew= IF(Table[Columnold]= "True", 1,0)
I hope this is what you needed.
Mark this as a solution if I answered your question.
Thanks
Hi @Smithy33
Create a new column:
Columnnew= IF(Table[Columnold]= "True", 1,0)
I hope this is what you needed.
Mark this as a solution if I answered your question.
Thanks
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
18 | |
7 | |
7 | |
5 | |
5 |
User | Count |
---|---|
23 | |
10 | |
10 | |
9 | |
7 |