<?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 Tableau LOD into DAX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tableau-LOD-into-DAX/m-p/2855730#M91783</link>
    <description>&lt;P&gt;Hi ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having trouble converting this Tableau formula into DAX.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sum(IF [Number of visits]&amp;gt; 0 then 1&lt;/P&gt;&lt;P&gt;else 0&lt;/P&gt;&lt;P&gt;end) / COUNTD([Account Number]).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please help me convert it into DAX? Thanks!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 21 Oct 2022 13:09:22 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-10-21T13:09:22Z</dc:date>
    <item>
      <title>Tableau LOD into DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tableau-LOD-into-DAX/m-p/2855730#M91783</link>
      <description>&lt;P&gt;Hi ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having trouble converting this Tableau formula into DAX.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sum(IF [Number of visits]&amp;gt; 0 then 1&lt;/P&gt;&lt;P&gt;else 0&lt;/P&gt;&lt;P&gt;end) / COUNTD([Account Number]).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please help me convert it into DAX? Thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2022 13:09:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tableau-LOD-into-DAX/m-p/2855730#M91783</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-21T13:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: Tableau LOD into DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tableau-LOD-into-DAX/m-p/2855876#M91794</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;Maybe:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
  VAR __Table = ADDCOLUMNS(SELECTCOLUMNS('Table',"__NumVisits",[Number of visits]),"__Counter",IF([__NumVisits] &amp;gt; 0,1,0))
RETURN
  DIVIDE
    SUMX(__Table,[__Counter]),
    DISTINCTCOUNT('Table'[Account Number])
  )&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 21 Oct 2022 14:25:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tableau-LOD-into-DAX/m-p/2855876#M91794</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2022-10-21T14:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: Tableau LOD into DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tableau-LOD-into-DAX/m-p/2859291#M92025</link>
      <description>&lt;P&gt;I am sorry but I am not sure I understand this formula you have given me. What does the 'counter' do exactly ? Maybe we could split the formula in 2 and first have the if function:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;&lt;/P&gt;&lt;P&gt;sum(IF [Number of visits]&amp;gt; 0 then 1&lt;/P&gt;&lt;P&gt;else 0&lt;/P&gt;&lt;P&gt;end)&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and then from the result to divide the account number ?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2022 13:21:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tableau-LOD-into-DAX/m-p/2859291#M92025</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-24T13:21:08Z</dc:date>
    </item>
  </channel>
</rss>

