<?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: Flag of counting multiple sign ins in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Flag-of-counting-multiple-sign-ins/m-p/3937854#M153138</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure how your semantic model looks like, but I tried to create a sample pbix file like below.&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file.&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;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/dax/window-function-dax?wt.mc_id=DP-MVP-5004989" target="_blank"&gt;WINDOW function (DAX) - DAX | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;expected result measure: =
SUMX (
    VALUES ( data[ip_address] ),
    CALCULATE (
        IF (
            COUNTROWS (
                FILTER (
                    ADDCOLUMNS (
                        SUMMARIZE ( data, 'calendar'[Date] ),
                        "@result",
                            CALCULATE (
                                COUNTROWS ( SUMMARIZE ( data, data[member] ) ),
                                WINDOW (
                                    -2,
                                    REL,
                                    0,
                                    REL,
                                    ALL ( 'calendar'[Date] ),
                                    ORDERBY ( 'calendar'[Date], ASC )
                                )
                            )
                    ),
                    [@result] &amp;gt; 1
                )
            ) &amp;gt; 0,
            1,
            0
        )
    )
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 22 May 2024 04:35:07 GMT</pubDate>
    <dc:creator>Jihwan_Kim</dc:creator>
    <dc:date>2024-05-22T04:35:07Z</dc:date>
    <item>
      <title>Flag of counting multiple sign ins</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Flag-of-counting-multiple-sign-ins/m-p/3937704#M153136</link>
      <description>&lt;P&gt;I am trying to create a flag in the report to indicate which IP address has more than 1 member signing in within 3 consecutive days.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data looks like -&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Expected result -&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;yellow case - it obsiously has multiple members signing in , so a flag of 1&lt;/P&gt;&lt;P&gt;orange case - as there were more than 1 member signing in on 3/5 and 4/5, so a flag of 1&lt;/P&gt;&lt;P&gt;green case - as B signed in more than 3 days from A, so a flag of 0&lt;/P&gt;&lt;P&gt;Can you please help me with the DAX? thank you&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 03:18:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Flag-of-counting-multiple-sign-ins/m-p/3937704#M153136</guid>
      <dc:creator>mocha911</dc:creator>
      <dc:date>2024-05-22T03:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: Flag of counting multiple sign ins</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Flag-of-counting-multiple-sign-ins/m-p/3937854#M153138</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure how your semantic model looks like, but I tried to create a sample pbix file like below.&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file.&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;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/dax/window-function-dax?wt.mc_id=DP-MVP-5004989" target="_blank"&gt;WINDOW function (DAX) - DAX | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;expected result measure: =
SUMX (
    VALUES ( data[ip_address] ),
    CALCULATE (
        IF (
            COUNTROWS (
                FILTER (
                    ADDCOLUMNS (
                        SUMMARIZE ( data, 'calendar'[Date] ),
                        "@result",
                            CALCULATE (
                                COUNTROWS ( SUMMARIZE ( data, data[member] ) ),
                                WINDOW (
                                    -2,
                                    REL,
                                    0,
                                    REL,
                                    ALL ( 'calendar'[Date] ),
                                    ORDERBY ( 'calendar'[Date], ASC )
                                )
                            )
                    ),
                    [@result] &amp;gt; 1
                )
            ) &amp;gt; 0,
            1,
            0
        )
    )
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 04:35:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Flag-of-counting-multiple-sign-ins/m-p/3937854#M153138</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2024-05-22T04:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: Flag of counting multiple sign ins</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Flag-of-counting-multiple-sign-ins/m-p/3941385#M153239</link>
      <description>&lt;P&gt;Thank you so much for spending the time to do this! it works like a charm. I need to google to understand a couple of functions in there but wow....you are amazing! thank you&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2024 03:46:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Flag-of-counting-multiple-sign-ins/m-p/3941385#M153239</guid>
      <dc:creator>mocha911</dc:creator>
      <dc:date>2024-05-23T03:46:21Z</dc:date>
    </item>
  </channel>
</rss>

