<?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: DAX formula to show the Attendance date greater than equal to System date using -UTCNOW() or NOW()? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-to-show-the-Attendance-date-greater-than-equal-to/m-p/2028919#M45460</link>
    <description>&lt;P&gt;Have you see this article yet?&amp;nbsp;&amp;nbsp;&lt;A href="https://radacad.com/solving-dax-time-zone-issue-in-power-bi" target="_blank" rel="noopener"&gt;Solving DAX Time Zone Issue in Power BI - RADACAD&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will also want to make sure that your [AttendanceDate]&amp;nbsp; column is of DateTimeZone type.&lt;/P&gt;</description>
    <pubDate>Fri, 20 Aug 2021 21:59:23 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2021-08-20T21:59:23Z</dc:date>
    <item>
      <title>DAX formula to show the Attendance date greater than equal to System date using -UTCNOW() or NOW()?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-to-show-the-Attendance-date-greater-than-equal-to/m-p/2027572#M45371</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a &lt;STRONG&gt;Student&lt;/STRONG&gt; table with 5 columns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a typical issue where I need to show the datetime for student AttendanceDate for region &lt;STRONG&gt;Armonk&lt;/STRONG&gt; and region &lt;STRONG&gt;London&lt;/STRONG&gt; . I want any user from &lt;STRONG&gt;USA&lt;/STRONG&gt; should only see the records of today's attendance date but&amp;nbsp; for USA &lt;STRONG&gt;[Armonk]&lt;/STRONG&gt;it is showing &lt;STRONG&gt;yesterday's&lt;/STRONG&gt; date entries &lt;STRONG&gt;[marked in red in the below screenshot]&lt;/STRONG&gt;and but for any user in Europe are able see the attendance of today's date .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could anyone suggest any DAX to handle this? I tried the below DAX but it didnt show any record for USA while it showed correct record for Europe region.I am located in Europe region and I published the report from my local machine? Does that make a difference?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DAX calculated column&amp;nbsp; formula :-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;SYSTEM_TIME_REF = NOW()&lt;/P&gt;&lt;P&gt;FLAG = IF(student[attendance_date] &amp;gt;= student[SYSTEM_TIME_REF],0,1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Input data source :&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;AttendanceDate&lt;/TD&gt;&lt;TD&gt;Location&lt;/TD&gt;&lt;TD&gt;StudentID&lt;/TD&gt;&lt;TD&gt;Name&lt;/TD&gt;&lt;TD&gt;Region&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;20.08.2021 11:05AM&lt;/TD&gt;&lt;TD&gt;Gate1&lt;/TD&gt;&lt;TD&gt;101&lt;/TD&gt;&lt;TD&gt;Tom&lt;/TD&gt;&lt;TD&gt;London&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;20.08.2021 10.03.22&lt;/TD&gt;&lt;TD&gt;Gate1&lt;/TD&gt;&lt;TD&gt;102&lt;/TD&gt;&lt;TD&gt;Hary&lt;/TD&gt;&lt;TD&gt;London&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;20.08.2021 10.09.21&lt;/TD&gt;&lt;TD&gt;Gate2&lt;/TD&gt;&lt;TD&gt;103&lt;/TD&gt;&lt;TD&gt;Rohan&lt;/TD&gt;&lt;TD&gt;Armonk&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;20.08.2021 09.03.18&lt;/TD&gt;&lt;TD&gt;Gate2&lt;/TD&gt;&lt;TD&gt;105&lt;/TD&gt;&lt;TD&gt;Mohan&lt;/TD&gt;&lt;TD&gt;Armonk&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;19.08.2021 10.08.22&lt;/TD&gt;&lt;TD&gt;Gate2&lt;/TD&gt;&lt;TD&gt;109&lt;/TD&gt;&lt;TD&gt;Sam&lt;/TD&gt;&lt;TD&gt;Armonk&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;19.08.2021 10.03.12&lt;/TD&gt;&lt;TD&gt;Gate2&lt;/TD&gt;&lt;TD&gt;110&lt;/TD&gt;&lt;TD&gt;Sally&lt;/TD&gt;&lt;TD&gt;Armonk&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Expected Output:&lt;/STRONG&gt;&lt;/U&gt;&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;Whenever the Attendance_Date &amp;gt;= systemtime date then it should set the flag as 0 else 1.Therefore we can filter and show records of the present date based on system date but in case of USA it is showing one day older than the system date while in Europe region it is showing correct records.How to fix this issue , please suggest a DAX?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone please suggest any DAX changes or any DAX forumla to handle this in a better way and to rectify this issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Sameer&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 06:57:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-to-show-the-Attendance-date-greater-than-equal-to/m-p/2027572#M45371</guid>
      <dc:creator>deb_power123</dc:creator>
      <dc:date>2021-08-20T06:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: DAX formula to show the Attendance date greater than equal to System date using -UTCNOW() or NOW()?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-to-show-the-Attendance-date-greater-than-equal-to/m-p/2028919#M45460</link>
      <description>&lt;P&gt;Have you see this article yet?&amp;nbsp;&amp;nbsp;&lt;A href="https://radacad.com/solving-dax-time-zone-issue-in-power-bi" target="_blank" rel="noopener"&gt;Solving DAX Time Zone Issue in Power BI - RADACAD&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will also want to make sure that your [AttendanceDate]&amp;nbsp; column is of DateTimeZone type.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 21:59:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-to-show-the-Attendance-date-greater-than-equal-to/m-p/2028919#M45460</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2021-08-20T21:59:23Z</dc:date>
    </item>
  </channel>
</rss>

