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 There,
Have a question that i've been trying to find a solution for but no luck so i hope someone here cld. provide a solution
Here goes:
I have a State colum with an integer that is made up of underlying bitflags
Thanks to the internet i've got a function that can give me the binary value of the integer.
e.g. 6 is 0000000110
My question is - how to get the 'binary value' as an array of or comma separated values
e,g. 6 is 2,4
Kind regards
Solved! Go to Solution.
Hi @mediaware ,
Here are the steps you can follow:
1. Create calculated column.
123 =
CONCATENATE(
POWER(
2,
LEN('Table'[Column1])-
FIND("1",[Column1])-1) ,
CONCATENATE(
",",
POWER(2,
(LEN('Table'[Column1])-
FIND("1",[Column1])+1)-1
)))
2. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @mediaware ,
Here are the steps you can follow:
1. Create calculated column.
123 =
CONCATENATE(
POWER(
2,
LEN('Table'[Column1])-
FIND("1",[Column1])-1) ,
CONCATENATE(
",",
POWER(2,
(LEN('Table'[Column1])-
FIND("1",[Column1])+1)-1
)))
2. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
User | Count |
---|---|
25 | |
12 | |
8 | |
6 | |
6 |
User | Count |
---|---|
26 | |
12 | |
11 | |
9 | |
6 |