<?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 Re: Migration of Tableau LOD to Power bi in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Migration-of-Tableau-LOD-to-Power-bi/m-p/2134609#M48997</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would help us to give answer more specifically if you could share some sample data with required output.&lt;/P&gt;&lt;P&gt;You can try below code:-&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;% Doc count =
VAR distinct_count =
    CALCULATE ( DISTINCTCOUNT ( [count Doc] ) )
VAR total_count =
    CALCULATE ( COUNT ( [count Doc] ) )
RETURN
    DIVIDE ( distinct_count, total_count )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Samarth&lt;/P&gt;</description>
    <pubDate>Thu, 14 Oct 2021 09:53:09 GMT</pubDate>
    <dc:creator>Samarth_18</dc:creator>
    <dc:date>2021-10-14T09:53:09Z</dc:date>
    <item>
      <title>Migration of Tableau LOD to Power bi</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Migration-of-Tableau-LOD-to-Power-bi/m-p/2134579#M48995</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i need your help to build Dax using below Tableau Lod&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;% Doc count =&amp;nbsp;[count Doc] / TOTAL([count Doc])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;where "Count Doc" is distinct count of "docno"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Oct 2021 09:37:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Migration-of-Tableau-LOD-to-Power-bi/m-p/2134579#M48995</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-14T09:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: Migration of Tableau LOD to Power bi</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Migration-of-Tableau-LOD-to-Power-bi/m-p/2134609#M48997</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would help us to give answer more specifically if you could share some sample data with required output.&lt;/P&gt;&lt;P&gt;You can try below code:-&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;% Doc count =
VAR distinct_count =
    CALCULATE ( DISTINCTCOUNT ( [count Doc] ) )
VAR total_count =
    CALCULATE ( COUNT ( [count Doc] ) )
RETURN
    DIVIDE ( distinct_count, total_count )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Samarth&lt;/P&gt;</description>
      <pubDate>Thu, 14 Oct 2021 09:53:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Migration-of-Tableau-LOD-to-Power-bi/m-p/2134609#M48997</guid>
      <dc:creator>Samarth_18</dc:creator>
      <dc:date>2021-10-14T09:53:09Z</dc:date>
    </item>
  </channel>
</rss>

