<?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 to calculate higher value for same dates on user level in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-higher-value-for-same-dates-on-user-level/m-p/2940478#M97093</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="477461" data-lia-user-login="NebojsaZ88" class="lia-mention lia-mention-user"&gt;NebojsaZ88&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please refer to my pbix file to see if it helps you.&lt;/P&gt;
&lt;P&gt;Create measures.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
IF (
    MAX ( [Group rank] )
        = CALCULATE (
            MAX ( 'Table'[Group rank] ),
            FILTER ( ALL ( 'Table' ), [weekending] = SELECTEDVALUE ( 'Table'[weekending] ) )
        ),
    1,
    0
)
&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Measure2 =
VAR _b =
    SUMMARIZE ( 'Table', 'Table'[weekending], "aaa", [Measure] )
RETURN
    IF ( HASONEVALUE ( 'Table'[weekending] ), [Measure], SUMX ( _b, [aaa] ) )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;Or create a column.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column =
IF (
    [Group rank]
        = CALCULATE (
            MAX ( 'Table'[Group rank] ),
            FILTER ( 'Table', [weekending] = EARLIER ( 'Table'[weekending] ) )
        ),
    1,
    0
)
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Community Support Team _ Polly&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Dec 2022 01:47:03 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-12-01T01:47:03Z</dc:date>
    <item>
      <title>How to calculate higher value for same dates on user level</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-higher-value-for-same-dates-on-user-level/m-p/2938614#M96960</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I need to solve problem below presented: I am trying to calculate count of rows by unique users but problem is when user appears two or more times in same week. In example below, in #2 groups, 8-16 and 24 (highlighted in light-blue)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The output of this problem, in order to present number correctly should be like in unnammed column, meaning that if one user appears more that once in same week, I should count only the highiest group. In this case, for week 2022-11-26, only to consider group 24 as 1 and 8-16 as 0, so my easy countdistinct formula will show 7 instead of 8.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Any advice?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 10:56:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-higher-value-for-same-dates-on-user-level/m-p/2938614#M96960</guid>
      <dc:creator>NebojsaZ88</dc:creator>
      <dc:date>2022-11-30T10:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate higher value for same dates on user level</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-higher-value-for-same-dates-on-user-level/m-p/2940478#M97093</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="477461" data-lia-user-login="NebojsaZ88" class="lia-mention lia-mention-user"&gt;NebojsaZ88&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please refer to my pbix file to see if it helps you.&lt;/P&gt;
&lt;P&gt;Create measures.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
IF (
    MAX ( [Group rank] )
        = CALCULATE (
            MAX ( 'Table'[Group rank] ),
            FILTER ( ALL ( 'Table' ), [weekending] = SELECTEDVALUE ( 'Table'[weekending] ) )
        ),
    1,
    0
)
&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Measure2 =
VAR _b =
    SUMMARIZE ( 'Table', 'Table'[weekending], "aaa", [Measure] )
RETURN
    IF ( HASONEVALUE ( 'Table'[weekending] ), [Measure], SUMX ( _b, [aaa] ) )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;Or create a column.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column =
IF (
    [Group rank]
        = CALCULATE (
            MAX ( 'Table'[Group rank] ),
            FILTER ( 'Table', [weekending] = EARLIER ( 'Table'[weekending] ) )
        ),
    1,
    0
)
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Community Support Team _ Polly&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 01:47:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-higher-value-for-same-dates-on-user-level/m-p/2940478#M97093</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-01T01:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate higher value for same dates on user level</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-higher-value-for-same-dates-on-user-level/m-p/2941630#M97195</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;With small changes (ALLEXCEPT instead of ALL) I managed to get result + I added into FILTER User ID as my table contains 1000+ unique users (I just show here example for one). Overall, good guidance to what I wanted, so thank you.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":ok_hand:"&gt;👌&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Measure =
IF (
    MAX ('Table'[Group rank]) =
    CALCULATE (
        MAX ('Table'[Group rank]),
        FILTER (ALLEXCEPT('Table','Table'[Week Ending]), 'Table'[User ID] = SELECTEDVALUE('Table'[User ID]))),1,0)&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;But, with second measure, I have result i wanted for matrix viz, but when I want to show as chart (live printscreen below) and in Y-axis put measure 2, there is no values, why?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 10:12:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-higher-value-for-same-dates-on-user-level/m-p/2941630#M97195</guid>
      <dc:creator>NebojsaZ88</dc:creator>
      <dc:date>2022-12-01T10:12:42Z</dc:date>
    </item>
  </channel>
</rss>

