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
User | Count |
---|---|
25 | |
10 | |
7 | |
6 | |
6 |
User | Count |
---|---|
30 | |
11 | |
11 | |
9 | |
7 |