<?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: How do i convert the tableau LOD Calculation to Power BI. I am not getting the desired output. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-i-convert-the-tableau-LOD-Calculation-to-Power-BI-I-am/m-p/3100293#M108964</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="521051" data-lia-user-login="Ritika0307" class="lia-mention lia-mention-user"&gt;Ritika0307&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To replicate the behaviour of this FIXED LOD calculation, I would suggest using REMOVEFILTERS/SUMMARIZE rather than ALLEXCEPT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I believe this should work as expected:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Self_service_success =
CALCULATE (
    DISTINCTCOUNT ( 'TB'[CASENUMBER] ),
    'TB'[SCENARIO] = "Web activities but No Case Created",
    -- Remove filters on TB table...
    REMOVEFILTERS ( 'TB' ),
    -- ...but add back a filter corresponding to visible combinations of these columns
    SUMMARIZE (
        'TB',
        'TB'[CASENUMBER],
        'TB'[V05_DATE],
        'TB'[ACCOUNT_NAME__C],
        'TB'[CONTACT_NAME__C],
        'TB'[CREATEDDATE],
        'TB'[FISCAL_MONTH],
        'TB'[V02_SEARCH_TERM],
        'TB'[V20_ASSET_NAME]
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The reason not to use ALLEXCEPT in this case is that it will only retain filters that exist on the specific columns listed, but will not retain values in those columns resulting in crossfiltering from other columns. In Tableau, FIXED does retain filters resulting from crossfiltering on the listed columns.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does the above expression work as expected?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Mon, 27 Feb 2023 01:23:32 GMT</pubDate>
    <dc:creator>OwenAuger</dc:creator>
    <dc:date>2023-02-27T01:23:32Z</dc:date>
    <item>
      <title>How do i convert the tableau LOD Calculation to Power BI. I am not getting the desired output.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-i-convert-the-tableau-LOD-Calculation-to-Power-BI-I-am/m-p/3100189#M108957</link>
      <description>&lt;P&gt;I have a LOD calculation in tableau as below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;{FIXED [Casenumber],[Adobe Date],[Account_Name__C],[Contact_Name__C],[Case Created Date],[Fiscal Date],[SEARCH_TERM],[Asset Name]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;: COUNTD(IF ([Scenario (trim)] = 'Web activities but No Case Created')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;THEN [Casenumber] END)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;It returns a distinct count of casenumbers based on the columns mentioned in the fixed syntax.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried converting the same in Power bi using the below DAX. But i am not getting correct output.&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Self_service_success = CALCULATE(DISTINCTCOUNT('TB'[CASENUMBER]),'TB'[SCENARIO]="Web activities but No Case Created",ALLEXCEPT('TB','TB'[CASENUMBER],'TB'[V05_DATE],'TB'[ACCOUNT_NAME__C],'TB'[CONTACT_NAME__C],'TB'[CREATEDDATE],'TB'[FISCAL_MONTH],'TB'[V02_SEARCH_TERM],'TB'[V20_ASSET_NAME]))&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Is there any other way in which i can convert the LOD to power bi DAX measure?&lt;/DIV&gt;</description>
      <pubDate>Sun, 26 Feb 2023 21:37:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-i-convert-the-tableau-LOD-Calculation-to-Power-BI-I-am/m-p/3100189#M108957</guid>
      <dc:creator>Ritika0307</dc:creator>
      <dc:date>2023-02-26T21:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: How do i convert the tableau LOD Calculation to Power BI. I am not getting the desired output.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-i-convert-the-tableau-LOD-Calculation-to-Power-BI-I-am/m-p/3100293#M108964</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="521051" data-lia-user-login="Ritika0307" class="lia-mention lia-mention-user"&gt;Ritika0307&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To replicate the behaviour of this FIXED LOD calculation, I would suggest using REMOVEFILTERS/SUMMARIZE rather than ALLEXCEPT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I believe this should work as expected:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Self_service_success =
CALCULATE (
    DISTINCTCOUNT ( 'TB'[CASENUMBER] ),
    'TB'[SCENARIO] = "Web activities but No Case Created",
    -- Remove filters on TB table...
    REMOVEFILTERS ( 'TB' ),
    -- ...but add back a filter corresponding to visible combinations of these columns
    SUMMARIZE (
        'TB',
        'TB'[CASENUMBER],
        'TB'[V05_DATE],
        'TB'[ACCOUNT_NAME__C],
        'TB'[CONTACT_NAME__C],
        'TB'[CREATEDDATE],
        'TB'[FISCAL_MONTH],
        'TB'[V02_SEARCH_TERM],
        'TB'[V20_ASSET_NAME]
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The reason not to use ALLEXCEPT in this case is that it will only retain filters that exist on the specific columns listed, but will not retain values in those columns resulting in crossfiltering from other columns. In Tableau, FIXED does retain filters resulting from crossfiltering on the listed columns.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does the above expression work as expected?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 01:23:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-i-convert-the-tableau-LOD-Calculation-to-Power-BI-I-am/m-p/3100293#M108964</guid>
      <dc:creator>OwenAuger</dc:creator>
      <dc:date>2023-02-27T01:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: How do i convert the tableau LOD Calculation to Power BI. I am not getting the desired output.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-i-convert-the-tableau-LOD-Calculation-to-Power-BI-I-am/m-p/3100735#M108994</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="521051" data-lia-user-login="Ritika0307" class="lia-mention lia-mention-user"&gt;Ritika0307&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CALCULATE(&lt;BR /&gt;DISTINCTCOUNT(&lt;BR /&gt;IF(&lt;BR /&gt;[Scenario (trim)] = "Web activities but No Case Created",&lt;BR /&gt;[Casenumber]&lt;BR /&gt;)&lt;BR /&gt;),&lt;BR /&gt;FILTER(&lt;BR /&gt;ALL(&lt;BR /&gt;'Table'[Casenumber],&lt;BR /&gt;'Table'[Adobe Date],&lt;BR /&gt;'Table'[Account_Name__C],&lt;BR /&gt;'Table'[Contact_Name__C],&lt;BR /&gt;'Table'[Case Created Date],&lt;BR /&gt;'Table'[Fiscal Date],&lt;BR /&gt;'Table'[SEARCH_TERM],&lt;BR /&gt;'Table'[Asset Name]&lt;BR /&gt;),&lt;BR /&gt;'Table'[Casenumber] = MAX('Table'[Casenumber]) &amp;amp;&amp;amp;&lt;BR /&gt;'Table'[Adobe Date] = MAX('Table'[Adobe Date]) &amp;amp;&amp;amp;&lt;BR /&gt;'Table'[Account_Name__C] = MAX('Table'[Account_Name__C]) &amp;amp;&amp;amp;&lt;BR /&gt;'Table'[Contact_Name__C] = MAX('Table'[Contact_Name__C]) &amp;amp;&amp;amp;&lt;BR /&gt;'Table'[Case Created Date] = MAX('Table'[Case Created Date]) &amp;amp;&amp;amp;&lt;BR /&gt;'Table'[Fiscal Date] = MAX('Table'[Fiscal Date]) &amp;amp;&amp;amp;&lt;BR /&gt;'Table'[SEARCH_TERM] = MAX('Table'[SEARCH_TERM]) &amp;amp;&amp;amp;&lt;BR /&gt;'Table'[Asset Name] = MAX('Table'[Asset Name])&lt;BR /&gt;))&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;BR /&gt;Best Regards,&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Shreya&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Appreciate with a Kudos!! (Click the Thumbs Up Button)&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution!&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 07:08:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-i-convert-the-tableau-LOD-Calculation-to-Power-BI-I-am/m-p/3100735#M108994</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-27T07:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: How do i convert the tableau LOD Calculation to Power BI. I am not getting the desired output.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-i-convert-the-tableau-LOD-Calculation-to-Power-BI-I-am/m-p/3101373#M109034</link>
      <description>&lt;P&gt;Hello , i tried the above calculation , seems like after summarizing the columns it is only returning the distinct count of the casenumber. I want to see the count of the distinct rows the summarize statement is returning. ( I believe summarize is similar to group by).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If possible , i want to get DAX calculation equivalent to this sql statement.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;SELECT sum(count(DISTINCT(CASENUMBER))) FROM TB WHERE SCENARIO ='Web activities but No Case Created'&amp;nbsp; GROUP BY V05_DATE ,ACCOUNT_NAME__C ,CONTACT_NAME__C ,CREATEDDATE ,FISCAL_MONTH ,V02_SEARCH_TERM ,V20_ASSET_NAME ;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 12:30:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-i-convert-the-tableau-LOD-Calculation-to-Power-BI-I-am/m-p/3101373#M109034</guid>
      <dc:creator>Ritika0307</dc:creator>
      <dc:date>2023-02-27T12:30:34Z</dc:date>
    </item>
  </channel>
</rss>

