<?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: Issues with comparing data using date ranges in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issues-with-comparing-data-using-date-ranges/m-p/3730607#M145384</link>
    <description>&lt;P&gt;Ibendlin, thank you for your response. However, I dont understand what you mean by "&lt;SPAN&gt;&amp;nbsp;If you want to avoid the automatic sampling yu need to bring your own. "&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Feb 2024 12:38:54 GMT</pubDate>
    <dc:creator>fernamario</dc:creator>
    <dc:date>2024-02-28T12:38:54Z</dc:date>
    <item>
      <title>Issues with comparing data using date ranges</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issues-with-comparing-data-using-date-ranges/m-p/3720420#M144863</link>
      <description>&lt;P&gt;I am new to PowerBI and defenitely not an expert or developer. I was able to create a report based on an excel file which contains server names, CPU - Avail memory and % of avail memory, date and time. I need to be able to compare utilization between Feb 2 - 16 and then from Feb 20 - March 1 to show any utilization spikes after adding a new customer. I have tried using a Measure and an If statement with no luck. The excel sheet contains:&lt;/P&gt;&lt;P&gt;server name&lt;BR /&gt;date time&lt;BR /&gt;cpu&lt;BR /&gt;avail mem&lt;BR /&gt;% of avail mem&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it has an hour entry (24 in one day).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any advice? Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 17:22:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issues-with-comparing-data-using-date-ranges/m-p/3720420#M144863</guid>
      <dc:creator>fernamario</dc:creator>
      <dc:date>2024-02-23T17:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with comparing data using date ranges</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issues-with-comparing-data-using-date-ranges/m-p/3720890#M144884</link>
      <description>&lt;P&gt;Please provide sample data that covers your issue or question &lt;STRONG&gt;completely&lt;/STRONG&gt;, in a &lt;STRONG&gt;usable&lt;/STRONG&gt; format (not as a screenshot).&lt;BR /&gt;&lt;BR /&gt;Do not include sensitive information or anything not related to the issue or question. &lt;BR /&gt;&lt;BR /&gt;If you are unsure how to upload data please refer to &lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;Please show the expected outcome based on the sample data you provided. &lt;BR /&gt;&lt;BR /&gt;Want faster answers? &lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Feb 2024 01:18:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issues-with-comparing-data-using-date-ranges/m-p/3720890#M144884</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-02-24T01:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with comparing data using date ranges</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issues-with-comparing-data-using-date-ranges/m-p/3723131#M144986</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="695443" data-lia-user-login="fernamario" class="lia-mention lia-mention-user"&gt;fernamario&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Based on your description, I understand utilization as the "% of avail mem" field. The following data was created:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Create a measure, write an expression, calculate the average utilization of the two dates, and then compare.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
VAR DateRange1 = FILTER(ALL('Table'),'Table'[date time] &amp;gt;= DATE(2024,2,2) &amp;amp;&amp;amp; 'Table'[date time] &amp;lt;= DATE(2024,2,16))
VAR Utilization1 = CALCULATE(AVERAGE('Table'[% of avail mem]), DateRange1)
VAR DateRange2 = FILTER(ALL('Table'),'Table'[date time] &amp;gt;= DATE(2024,2,20) &amp;amp;&amp;amp; 'Table'[date time] &amp;lt;= DATE(2024,3,1))
VAR Utilization2 = CALCULATE(AVERAGE('Table'[% of avail mem]), DateRange2)
RETURN
IF(Utilization1 &amp;gt;= Utilization2,Utilization1,Utilization2)&lt;/LI-CODE&gt;
&lt;P&gt;2. The final result is shown in the figure below.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If my understanding is wrong, please provide more detailed pbix files or screenshots to better help you solve the problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Clara Gong&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 07:31:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issues-with-comparing-data-using-date-ranges/m-p/3723131#M144986</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-26T07:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with comparing data using date ranges</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issues-with-comparing-data-using-date-ranges/m-p/3724177#M145036</link>
      <description>&lt;P&gt;Clara, thank you so much for this. One question, if I wanted to run this for each server, what is needed in the Measure?&lt;/P&gt;&lt;P&gt;I changed the values for % of avail mem to CPU and Avail Mem for different measures.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 14:16:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issues-with-comparing-data-using-date-ranges/m-p/3724177#M145036</guid>
      <dc:creator>fernamario</dc:creator>
      <dc:date>2024-02-26T14:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with comparing data using date ranges</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issues-with-comparing-data-using-date-ranges/m-p/3725030#M145078</link>
      <description>&lt;P&gt;Clara, unfortunately, the results are skewed after I applied the measure. Would it be easier if I attached the files for your review?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 20:36:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issues-with-comparing-data-using-date-ranges/m-p/3725030#M145078</guid>
      <dc:creator>fernamario</dc:creator>
      <dc:date>2024-02-26T20:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with comparing data using date ranges</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issues-with-comparing-data-using-date-ranges/m-p/3725421#M145113</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="695443" data-lia-user-login="fernamario" class="lia-mention lia-mention-user"&gt;fernamario&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Yes, if you upload the file and provide the desired effect, I will understand you better and help you get the desired result. If your data volume is relatively large or has private data, you can create some representative data yourself for easier understanding.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Clara Gong&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 01:24:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issues-with-comparing-data-using-date-ranges/m-p/3725421#M145113</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-27T01:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with comparing data using date ranges</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issues-with-comparing-data-using-date-ranges/m-p/3727763#M145227</link>
      <description>&lt;P&gt;Clara, unfortuantely, I cannot upload the file since the org blocks the use of any external cloud storage. Any other options? Let me see if I can use my home PC and personal account to upload.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 13:32:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issues-with-comparing-data-using-date-ranges/m-p/3727763#M145227</guid>
      <dc:creator>fernamario</dc:creator>
      <dc:date>2024-02-27T13:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with comparing data using date ranges</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issues-with-comparing-data-using-date-ranges/m-p/3727795#M145229</link>
      <description>&lt;P&gt;Here are both files.&lt;/P&gt;&lt;P&gt;&lt;A href="https://urldefense.proofpoint.com/v2/url?u=https-3A__docs.google.com_spreadsheets_d_165l1GNqGB4HTymSQDnrFOtlzCZAlkcIU_edit-3Fusp-3Dsharing-26ouid-3D118372175940774225300-26rtpof-3Dtrue-26sd-3Dtrue&amp;amp;d=DwMFAg&amp;amp;c=rRy1VLRfG3iq78wJmVOlVGvgLG8qPGddnoapq3qqxOA&amp;amp;r=uKJaUJB0M5r5C4UBhORNqHFs9brGQ-9ZkmRyIjfDpFY&amp;amp;m=hSzVwO1N4en2ZHWKa_JOxP73hIJP_rYFav9fRDa4fBLXCwDYn6n8-CH4HyYcGc3j&amp;amp;s=JYanzJTmHGjiUGnRuxZgcHTy8OonKO-JjJIQIuaPfEM&amp;amp;e=" target="_blank"&gt;https://docs.google.com/spreadsheets/d/165l1GNqGB4HTymSQDnrFOtlzCZAlkcIU/edit?usp=sharing&amp;amp;ouid=118372175940774225300&amp;amp;rtpof=true&amp;amp;sd=true&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://urldefense.proofpoint.com/v2/url?u=https-3A__drive.google.com_file_d_1e48McKzwaAXxgtndeii5N2H7LgeQA5k2_view-3Fusp-3Dsharing&amp;amp;d=DwMFAg&amp;amp;c=rRy1VLRfG3iq78wJmVOlVGvgLG8qPGddnoapq3qqxOA&amp;amp;r=uKJaUJB0M5r5C4UBhORNqHFs9brGQ-9ZkmRyIjfDpFY&amp;amp;m=hSzVwO1N4en2ZHWKa_JOxP73hIJP_rYFav9fRDa4fBLXCwDYn6n8-CH4HyYcGc3j&amp;amp;s=aWG30gYMFNhNuJlCa_7geUqZhe4aXicYDcFDYoQ53Mk&amp;amp;e=" target="_blank"&gt;https://drive.google.com/file/d/1e48McKzwaAXxgtndeii5N2H7LgeQA5k2/view?usp=sharing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 13:40:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issues-with-comparing-data-using-date-ranges/m-p/3727795#M145229</guid>
      <dc:creator>fernamario</dc:creator>
      <dc:date>2024-02-27T13:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with comparing data using date ranges</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issues-with-comparing-data-using-date-ranges/m-p/3729106#M145298</link>
      <description>&lt;P&gt;The % of mem is redundant.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Note the blue "i"&amp;nbsp; - that is a (bad) indicator that not all data is shown.&amp;nbsp; If you want to avoid the automatic sampling yu need to bring your own.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 02:23:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issues-with-comparing-data-using-date-ranges/m-p/3729106#M145298</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-02-28T02:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with comparing data using date ranges</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issues-with-comparing-data-using-date-ranges/m-p/3730607#M145384</link>
      <description>&lt;P&gt;Ibendlin, thank you for your response. However, I dont understand what you mean by "&lt;SPAN&gt;&amp;nbsp;If you want to avoid the automatic sampling yu need to bring your own. "&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 12:38:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issues-with-comparing-data-using-date-ranges/m-p/3730607#M145384</guid>
      <dc:creator>fernamario</dc:creator>
      <dc:date>2024-02-28T12:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with comparing data using date ranges</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issues-with-comparing-data-using-date-ranges/m-p/3730688#M145386</link>
      <description>&lt;P&gt;You need to make your own decision on how to aggregate the data, or else Power BI will make that decision for you.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 13:08:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issues-with-comparing-data-using-date-ranges/m-p/3730688#M145386</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-02-28T13:08:58Z</dc:date>
    </item>
  </channel>
</rss>

