<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Deducing the numbers from bitflag in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Deducing-the-numbers-from-bitflag/m-p/2765091#M85862</link>
    <description>&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here goes:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a State colum with an integer that is made up of underlying bitflags&lt;/P&gt;&lt;P&gt;Thanks to the internet i've got a function that can give me the binary value of the integer.&lt;/P&gt;&lt;P&gt;e.g. 6 is 0000000110&lt;/P&gt;&lt;P&gt;My question is - how to get the 'binary value' as an array of or comma separated values&lt;/P&gt;&lt;P&gt;e,g. 6 is 2,4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Sep 2022 18:00:04 GMT</pubDate>
    <dc:creator>mediaware</dc:creator>
    <dc:date>2022-09-13T18:00:04Z</dc:date>
    <item>
      <title>Deducing the numbers from bitflag</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Deducing-the-numbers-from-bitflag/m-p/2765091#M85862</link>
      <description>&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here goes:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a State colum with an integer that is made up of underlying bitflags&lt;/P&gt;&lt;P&gt;Thanks to the internet i've got a function that can give me the binary value of the integer.&lt;/P&gt;&lt;P&gt;e.g. 6 is 0000000110&lt;/P&gt;&lt;P&gt;My question is - how to get the 'binary value' as an array of or comma separated values&lt;/P&gt;&lt;P&gt;e,g. 6 is 2,4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 18:00:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Deducing-the-numbers-from-bitflag/m-p/2765091#M85862</guid>
      <dc:creator>mediaware</dc:creator>
      <dc:date>2022-09-13T18:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: Deducing the numbers from bitflag</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Deducing-the-numbers-from-bitflag/m-p/2766139#M85913</link>
      <description>&lt;P&gt;Hi&amp;nbsp; &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="441300" data-lia-user-login="mediaware" class="lia-mention lia-mention-user"&gt;mediaware&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Here are the steps you can follow：&lt;/P&gt;
&lt;P&gt;1. Create calculated column.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;123 =
CONCATENATE(
    POWER(
    2,
    LEN('Table'[Column1])-
    FIND("1",[Column1])-1) ,
CONCATENATE(
    ",",
 POWER(2,
    (LEN('Table'[Column1])-
    FIND("1",[Column1])+1)-1
    )))&lt;/LI-CODE&gt;
&lt;P&gt;2. Result:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 06:15:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Deducing-the-numbers-from-bitflag/m-p/2766139#M85913</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-14T06:15:26Z</dc:date>
    </item>
  </channel>
</rss>

