<?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 % with static denominator in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/with-static-denominator/m-p/4675151#M179045</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a simply power bi report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It consistes of a table and 6 slicers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;5 of the slicers are simple dropdowns of columns (purely to filter the table)&lt;/P&gt;&lt;P&gt;1 of the slicers is a date slicer to filter by date. (this date column is in the same table&amp;nbsp; - all columns are in the same table)&lt;BR /&gt;&lt;BR /&gt;What I am trying to do is the following:&lt;BR /&gt;&lt;BR /&gt;Whatever the period the date slice is on (for example lets say 01/01/2025 to 01/31/2025 is selected). In the table there is a column "referral number", the distinct count of this column (for the period selected above)&amp;nbsp; = 100. Now, what I am trying to do is that when any of the other 5 slicers are used, I would like to get the count of that filtered content (also the distinct count of "referral number" and divide that by the 100 to get the %. So lets say if slice one A is a country and USA is picked and the amount for USA is 20, then I need 20/100. NOw if the user keeps usa sliced and then moves on to the 2nd slicer which lets say is City and picks NY and the value for NY is 10, then I need 10/100 and so forth.&lt;BR /&gt;&lt;BR /&gt;I am unable to keep the date filter static - I have tried ALL, ALLexcept, removefilter but no matter what I try, the "100"&amp;nbsp; keeps on changing. I have spent hours on this and tried so many measures but I just cannot get it to work.&lt;BR /&gt;&lt;BR /&gt;Any help or guidance would be greatly appreciated on this.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Apr 2025 18:47:54 GMT</pubDate>
    <dc:creator>micang</dc:creator>
    <dc:date>2025-04-30T18:47:54Z</dc:date>
    <item>
      <title>% with static denominator</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/with-static-denominator/m-p/4675151#M179045</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a simply power bi report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It consistes of a table and 6 slicers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;5 of the slicers are simple dropdowns of columns (purely to filter the table)&lt;/P&gt;&lt;P&gt;1 of the slicers is a date slicer to filter by date. (this date column is in the same table&amp;nbsp; - all columns are in the same table)&lt;BR /&gt;&lt;BR /&gt;What I am trying to do is the following:&lt;BR /&gt;&lt;BR /&gt;Whatever the period the date slice is on (for example lets say 01/01/2025 to 01/31/2025 is selected). In the table there is a column "referral number", the distinct count of this column (for the period selected above)&amp;nbsp; = 100. Now, what I am trying to do is that when any of the other 5 slicers are used, I would like to get the count of that filtered content (also the distinct count of "referral number" and divide that by the 100 to get the %. So lets say if slice one A is a country and USA is picked and the amount for USA is 20, then I need 20/100. NOw if the user keeps usa sliced and then moves on to the 2nd slicer which lets say is City and picks NY and the value for NY is 10, then I need 10/100 and so forth.&lt;BR /&gt;&lt;BR /&gt;I am unable to keep the date filter static - I have tried ALL, ALLexcept, removefilter but no matter what I try, the "100"&amp;nbsp; keeps on changing. I have spent hours on this and tried so many measures but I just cannot get it to work.&lt;BR /&gt;&lt;BR /&gt;Any help or guidance would be greatly appreciated on this.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Apr 2025 18:47:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/with-static-denominator/m-p/4675151#M179045</guid>
      <dc:creator>micang</dc:creator>
      <dc:date>2025-04-30T18:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: % with static denominator</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/with-static-denominator/m-p/4675207#M179048</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="826992" data-lia-user-login="micang" class="lia-mention lia-mention-user"&gt;micang&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please try this approach:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Referral % = 
VAR CurrentCount = DISTINCTCOUNT(Data[referral number])
VAR BaseCount =
    CALCULATE(
        DISTINCTCOUNT(Data[referral number]),
        ALL(Data),
        KEEPFILTERS(Data[Date])
    )
RETURN
DIVIDE(CurrentCount, BaseCount)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Apr 2025 20:14:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/with-static-denominator/m-p/4675207#M179048</guid>
      <dc:creator>Sahir_Maharaj</dc:creator>
      <dc:date>2025-04-30T20:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: % with static denominator</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/with-static-denominator/m-p/4675243#M179050</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="501067" data-lia-user-login="Sahir_Maharaj" class="lia-mention lia-mention-user"&gt;Sahir_Maharaj&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;This is so close, appreciate your time - the calculations are correct, but only if there is no filtering on the date slicer.&lt;BR /&gt;&lt;BR /&gt;Example, lets say the total referral number distinct count of the whole dataset is 1000, so what it's doing now, when other slicers are selected, its using 1000 as the denominator, irrespective what the date slicer is on. So if I have the data slicer not filtered and have no other slicers filterered, then the % is 100, whichis correct (1000/1000). If I then slicer on country, and country (USA) is 50, then % shows&amp;nbsp; 5, which is correct (50/1000) - but now, as soon as i use the data slicer and lets say i choose 1 month and, its still using the denominator of 1000 and not the distinct count of that month.&lt;BR /&gt;&lt;BR /&gt;Thank you so much for your effort, this is he closest I have gotten after hours and hours of trying.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;micang&lt;/P&gt;</description>
      <pubDate>Wed, 30 Apr 2025 20:55:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/with-static-denominator/m-p/4675243#M179050</guid>
      <dc:creator>micang</dc:creator>
      <dc:date>2025-04-30T20:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: % with static denominator</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/with-static-denominator/m-p/4675586#M179056</link>
      <description>&lt;P&gt;Try VALUES instead of KEEPFILTER&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Referral % = 
VAR CurrentCount = DISTINCTCOUNT(Data[referral number])
VAR BaseCount =
    CALCULATE(
        DISTINCTCOUNT(Data[referral number]),
        ALL(Data),
        VALUES(Data[Date])
    )
RETURN
DIVIDE(CurrentCount, BaseCount)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 01 May 2025 08:45:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/with-static-denominator/m-p/4675586#M179056</guid>
      <dc:creator>sjoerdvn</dc:creator>
      <dc:date>2025-05-01T08:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: % with static denominator</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/with-static-denominator/m-p/4678779#M179204</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="826992" data-lia-user-login="micang" class="lia-mention lia-mention-user"&gt;micang&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;SPAN data-teams="true"&gt;Just wanted to check if you had the opportunity to review the suggestions provided?&lt;BR /&gt;If the response has addressed your query, please&amp;nbsp;&lt;STRONG&gt;accept it as a solution&lt;/STRONG&gt;&amp;nbsp;and give a&amp;nbsp;&lt;STRONG&gt;'Kudos'&lt;/STRONG&gt;&amp;nbsp;so other members can easily find it.&lt;BR /&gt;Thank You&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 04 May 2025 07:36:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/with-static-denominator/m-p/4678779#M179204</guid>
      <dc:creator>v-sdhruv</dc:creator>
      <dc:date>2025-05-04T07:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: % with static denominator</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/with-static-denominator/m-p/4683068#M179360</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="826992" data-lia-user-login="micang" class="lia-mention lia-mention-user"&gt;micang&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;You can try this approach after using the measure shared by&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="501067" data-lia-user-login="Sahir_Maharaj" class="lia-mention lia-mention-user"&gt;Sahir_Maharaj&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;Create a Filtered measure-&lt;BR /&gt;&amp;nbsp;FilteredReferralCount = &lt;BR /&gt;DISTINCTCOUNT('Data'[Referral Number])&lt;BR /&gt;This will respect all the slicers.&lt;BR /&gt;Then create the final measure-&lt;BR /&gt;&lt;BR /&gt;ReferralSharePct = &lt;BR /&gt;DIVIDE([FilteredReferralCount], [BaseReferralCount], 0)&lt;BR /&gt;Hope this helps!&lt;BR /&gt;&lt;SPAN data-teams="true"&gt;If the response has addressed your query, please&amp;nbsp;&lt;STRONG&gt;accept it as a solution&lt;/STRONG&gt;&amp;nbsp;and give a&amp;nbsp;&lt;STRONG&gt;'Kudos'&lt;/STRONG&gt;&amp;nbsp;so other members can easily find it.&lt;BR /&gt;Thank You&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 May 2025 11:00:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/with-static-denominator/m-p/4683068#M179360</guid>
      <dc:creator>v-sdhruv</dc:creator>
      <dc:date>2025-05-07T11:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: % with static denominator</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/with-static-denominator/m-p/4699897#M180032</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="826992" data-lia-user-login="micang" class="lia-mention lia-mention-user"&gt;micang&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;SPAN data-teams="true"&gt;Just wanted to check if you had the opportunity to review the suggestions provided?&lt;BR /&gt;If the response has addressed your query, please&amp;nbsp;&lt;STRONG&gt;accept it as a solution&lt;/STRONG&gt;&amp;nbsp;and give a&amp;nbsp;&lt;STRONG&gt;'Kudos'&lt;/STRONG&gt;&amp;nbsp;so other members can easily find it.&lt;BR /&gt;Thank You&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2025 10:32:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/with-static-denominator/m-p/4699897#M180032</guid>
      <dc:creator>v-sdhruv</dc:creator>
      <dc:date>2025-05-20T10:32:39Z</dc:date>
    </item>
  </channel>
</rss>

