<?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 get sales and compare them with a custom calendar? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-sales-and-compare-them-with-a-custom-calendar/m-p/3131669#M111454</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="529319" data-lia-user-login="EgMorel" class="lia-mention lia-mention-user"&gt;EgMorel&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why not just keep in one table and create two relationships the use USERELATIONSHIP to switch between them?&lt;/P&gt;</description>
    <pubDate>Tue, 14 Mar 2023 18:05:28 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2023-03-14T18:05:28Z</dc:date>
    <item>
      <title>How to get sales and compare them with a custom calendar?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-sales-and-compare-them-with-a-custom-calendar/m-p/3130729#M111392</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to find a way to calculate the sales from this month and compares it against the same month of an specific year, for example,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have the sales between March 1st and March 13th 2023 and I want to compare it against 2019 same period but the difficulty is that the "Same Period in 2019" is not the "Same Period" what I mean is that it should be compared with a custom calendar, and to get the Customised 2019 calendar is subtract 2023 day with 1463 (i.e,. the comparableday of 2023/03/14 is 2019/03/12)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, im going to explain my model with my tables in a simply way:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Actually, Im working with:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. DETALLE_GRUPO (Sales Table with information from 2018 until today)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - "Importe" (Sales in $)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - "Fecha" (Date when the sales was made (normal calendar))&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - "Local" (Store where the sales was made)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Calendar2019 (Dates table)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- "Custom2019" (the custom 2019 calendar substracting 2023 - 1463).&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- "2023" (normal calendar), so each row of 2023 should match with Custom2019.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I made a relationship with Calendar2019[2023] and DETALLE_GRUPO[Fecha].&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope you can help me and sorry for my English.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Eduardo&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 12:49:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-sales-and-compare-them-with-a-custom-calendar/m-p/3130729#M111392</guid>
      <dc:creator>EgMorel</dc:creator>
      <dc:date>2023-03-14T12:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to get sales and compare them with a custom calendar?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-sales-and-compare-them-with-a-custom-calendar/m-p/3131235#M111429</link>
      <description>&lt;P&gt;I would split the calendar into 2, a normal calendar which includes all dates from Jan 1 2019 until Dec 31 2023 and a second one which has the date from 2023 and the appropriate date from 2019. Link them so that the normal calendar is the one side and the 2019 calendar is the many side and the filter flows from normal to 2019, not the other way. Link the normal calendar to your fact table and you can create a measure to compare them like&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Compare 2023 v 2019 =
VAR Value2023 =
    SUM ( 'DETALLE_GRUPO'[Importe] )
VAR Value2019 =
    CALCULATE (
        SUM ( 'DETALLE_GRUPO'[Importe] ),
        TREATAS ( VALUES ( 'Calendar2019'[Date 2023] ), 'Calendar normal'[Date] )
    )
RETURN
    DIVIDE ( Value2023 - Value2019, Value2019 )
&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 14 Mar 2023 15:48:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-sales-and-compare-them-with-a-custom-calendar/m-p/3131235#M111429</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-03-14T15:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to get sales and compare them with a custom calendar?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-sales-and-compare-them-with-a-custom-calendar/m-p/3131361#M111434</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240987" data-lia-user-login="johnt75" class="lia-mention lia-mention-user"&gt;johnt75&lt;/a&gt;,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;First of all, thanks for taking time to help me with my issue. To understand well, I should work with three tables?&lt;BR /&gt;1. Normal Calendar (2018-12-30 through 2023-12-31)&lt;BR /&gt;2. Custom Calendar (Column 2023 and column 2019 with the appropiate date)&lt;BR /&gt;3. DETALLE_GRUPO (Date and Importe)&lt;BR /&gt;&lt;BR /&gt;The link between Normal Calendar and Custom Calendar should be column 2023 and the link with DETALLE_GRUPO should be with Normal Calendar? because a I have a column with the normal dates in that table.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 16:24:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-sales-and-compare-them-with-a-custom-calendar/m-p/3131361#M111434</guid>
      <dc:creator>EgMorel</dc:creator>
      <dc:date>2023-03-14T16:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to get sales and compare them with a custom calendar?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-sales-and-compare-them-with-a-custom-calendar/m-p/3131378#M111436</link>
      <description>&lt;P&gt;Yes, exactly so. And the link from normal calendar to to custom calendar should only be single directional, from normal to custom.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 16:28:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-sales-and-compare-them-with-a-custom-calendar/m-p/3131378#M111436</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-03-14T16:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to get sales and compare them with a custom calendar?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-sales-and-compare-them-with-a-custom-calendar/m-p/3131570#M111450</link>
      <description>&lt;P&gt;John, I think Im close to achieving it but i don't know if the result is correct because my sales in this month (March until yesterday) are $70,629,048 and the measure Compare 2023 vs 2019 gives me 10,56%, I built a new measure called "Sales2019" to know what was the sale in that period in 2019 (with my custom calendar, it should be from 2019-02-27 until 2019-03-11) with a part of your DAX FORMULA:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;'DETALLE_GRUPO'&lt;/SPAN&gt;&lt;SPAN&gt;[Importe]&lt;/SPAN&gt;&lt;SPAN&gt; ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;TREATAS&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;'Custom Calendar'&lt;/SPAN&gt;&lt;SPAN&gt;[2023]&lt;/SPAN&gt;&lt;SPAN&gt; ), &lt;/SPAN&gt;&lt;SPAN&gt;'NormalCalendar'&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt; ))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;&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;</description>
      <pubDate>Tue, 14 Mar 2023 17:32:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-sales-and-compare-them-with-a-custom-calendar/m-p/3131570#M111450</guid>
      <dc:creator>EgMorel</dc:creator>
      <dc:date>2023-03-14T17:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to get sales and compare them with a custom calendar?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-sales-and-compare-them-with-a-custom-calendar/m-p/3131669#M111454</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="529319" data-lia-user-login="EgMorel" class="lia-mention lia-mention-user"&gt;EgMorel&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why not just keep in one table and create two relationships the use USERELATIONSHIP to switch between them?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 18:05:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-sales-and-compare-them-with-a-custom-calendar/m-p/3131669#M111454</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-03-14T18:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to get sales and compare them with a custom calendar?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-sales-and-compare-them-with-a-custom-calendar/m-p/3131709#M111456</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im not an expert in Power BI, so I came here asking for help. I tried different ways an no one works for me.&lt;BR /&gt;I tried working with just one Calendar Table with two columns but it doesnt works (I think a problem with relationships).&lt;BR /&gt;&lt;BR /&gt;This is I want to achieve:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Date&lt;/TD&gt;&lt;TD&gt;Sales Store 1 (Normal Calendar)&lt;/TD&gt;&lt;TD&gt;Sales Store 1 (Custom Calendar)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2023-03-01&lt;/TD&gt;&lt;TD&gt;$1000&lt;/TD&gt;&lt;TD&gt;$500 (this should be get from 2019-02-27)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2023-03-02&lt;/TD&gt;&lt;TD&gt;$800&lt;/TD&gt;&lt;TD&gt;$600 (this should be get from 2019-02-28)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 18:17:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-sales-and-compare-them-with-a-custom-calendar/m-p/3131709#M111456</guid>
      <dc:creator>EgMorel</dc:creator>
      <dc:date>2023-03-14T18:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to get sales and compare them with a custom calendar?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-sales-and-compare-them-with-a-custom-calendar/m-p/3131783#M111459</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="529319" data-lia-user-login="EgMorel" class="lia-mention lia-mention-user"&gt;EgMorel&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think if you keep one date table and you create a 2nd (inactive) relationship between &lt;SPAN&gt;Calendar2019[Custom2019] and DETALLE_GRUPO[Fecha],&amp;nbsp;&lt;/SPAN&gt;then for 2019 the sales amount should calculate correctly using&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sales 2019 =&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;CALCULATE (&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;[Sales Amount],&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;USERELATIONSHIP (&amp;nbsp;Calendar2019[Custom2019], DETALLE_GRUPO[Fecha] )&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Incase the result was all blank then try&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sales 2019 =&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;CALCULATE (&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;[Sales Amount],&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;USERELATIONSHIP (&amp;nbsp;Calendar2019[Custom2019], DETALLE_GRUPO[Fecha] ),&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;CROSSFILTER (&amp;nbsp;Calendar2019[2023], DETALLE_GRUPO[Fecha], NONE )&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 18:50:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-sales-and-compare-them-with-a-custom-calendar/m-p/3131783#M111459</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-03-14T18:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to get sales and compare them with a custom calendar?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-sales-and-compare-them-with-a-custom-calendar/m-p/3131799#M111461</link>
      <description>&lt;P&gt;I will try this option but I didnt get the 1st relationship? because we are going to work with just one date table "Calendar2019" and "DETALLE_GRUPO", you mean have two relationship between the same tables?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 19:00:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-sales-and-compare-them-with-a-custom-calendar/m-p/3131799#M111461</guid>
      <dc:creator>EgMorel</dc:creator>
      <dc:date>2023-03-14T19:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to get sales and compare them with a custom calendar?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-sales-and-compare-them-with-a-custom-calendar/m-p/3131858#M111464</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="529319" data-lia-user-login="EgMorel" class="lia-mention lia-mention-user"&gt;EgMorel&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes exactly. One would be active [2023] and one by default would be inactive [Custom2019]&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 19:29:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-sales-and-compare-them-with-a-custom-calendar/m-p/3131858#M111464</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-03-14T19:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to get sales and compare them with a custom calendar?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-sales-and-compare-them-with-a-custom-calendar/m-p/3131879#M111467</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;,&lt;BR /&gt;I get the same result as the&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240987" data-lia-user-login="johnt75" class="lia-mention lia-mention-user"&gt;johnt75&lt;/a&gt;'s way, 2019Sales is your measure (with the first formula) and Sales2019 is the&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240987" data-lia-user-login="johnt75" class="lia-mention lia-mention-user"&gt;johnt75&lt;/a&gt;&amp;nbsp;way&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 19:40:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-sales-and-compare-them-with-a-custom-calendar/m-p/3131879#M111467</guid>
      <dc:creator>EgMorel</dc:creator>
      <dc:date>2023-03-14T19:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to get sales and compare them with a custom calendar?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-sales-and-compare-them-with-a-custom-calendar/m-p/3131913#M111469</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="529319" data-lia-user-login="EgMorel" class="lia-mention lia-mention-user"&gt;EgMorel&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Place the months in the table to see it clearly. I would expect to see correct values for the first 3 months, however, after that you would still be able to see values under 2019 sales while 2023 sales should be blank being future months. If you to see values only upto date you can try&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sales 2019 =&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;CALCULATE (&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;[Sales Amount],&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;USERELATIONSHIP (&amp;nbsp;Calendar2019[Custom2019], DETALLE_GRUPO[Fecha] ),&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;KEEPFILTERS (&amp;nbsp;Calendar2019[Custom2019] &amp;lt;= TODAY ( ) )&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 20:02:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-sales-and-compare-them-with-a-custom-calendar/m-p/3131913#M111469</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-03-14T20:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to get sales and compare them with a custom calendar?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-sales-and-compare-them-with-a-custom-calendar/m-p/3131918#M111470</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;this is the Result with the months as rows:&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 20:08:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-sales-and-compare-them-with-a-custom-calendar/m-p/3131918#M111470</guid>
      <dc:creator>EgMorel</dc:creator>
      <dc:date>2023-03-14T20:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to get sales and compare them with a custom calendar?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-sales-and-compare-them-with-a-custom-calendar/m-p/3131934#M111472</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="529319" data-lia-user-login="EgMorel" class="lia-mention lia-mention-user"&gt;EgMorel&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As expected. But which one is the latest formula with TODAY filter?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 20:23:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-sales-and-compare-them-with-a-custom-calendar/m-p/3131934#M111472</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-03-14T20:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to get sales and compare them with a custom calendar?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-sales-and-compare-them-with-a-custom-calendar/m-p/3131964#M111479</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="529319" data-lia-user-login="EgMorel" class="lia-mention lia-mention-user"&gt;EgMorel&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry just noticed a mistake in the last formula. Please try&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sales 2019 =&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;CALCULATE (&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;[Sales Amount],&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;USERELATIONSHIP (&amp;nbsp;Calendar2019[Custom2019], DETALLE_GRUPO[Fecha] ),&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;KEEPFILTERS (&amp;nbsp;Calendar2019[2023] &amp;lt;= TODAY ( ) )&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 20:49:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-sales-and-compare-them-with-a-custom-calendar/m-p/3131964#M111479</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-03-14T20:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to get sales and compare them with a custom calendar?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-sales-and-compare-them-with-a-custom-calendar/m-p/3132106#M111489</link>
      <description>&lt;P&gt;2019Sales were calculated with Your first fórmula.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sales 2019 =&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;CALCULATE (&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;[Sales Amount],&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;USERELATIONSHIP (&amp;nbsp;Calendar2019[Custom2019], DETALLE_GRUPO[Fecha] )&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 22:44:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-sales-and-compare-them-with-a-custom-calendar/m-p/3132106#M111489</guid>
      <dc:creator>EgMorel</dc:creator>
      <dc:date>2023-03-14T22:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to get sales and compare them with a custom calendar?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-sales-and-compare-them-with-a-custom-calendar/m-p/3133216#M111559</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;the formula doesnt work, there is a third expression in CALCULATE?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 11:01:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-sales-and-compare-them-with-a-custom-calendar/m-p/3133216#M111559</guid>
      <dc:creator>EgMorel</dc:creator>
      <dc:date>2023-03-15T11:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to get sales and compare them with a custom calendar?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-sales-and-compare-them-with-a-custom-calendar/m-p/3133239#M111564</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="529319" data-lia-user-login="EgMorel" class="lia-mention lia-mention-user"&gt;EgMorel&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;What do you mean? Are you recieving an error? Yu may also try&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Sales 2019 =
CALCULATE (
    [Sales Amount],
    USERELATIONSHIP ( Calendar2019[Custom2019], DETALLE_GRUPO[Fecha] ),
    FILTER ( Calendar2019, Calendar2019[2023] &amp;lt;= TODAY () )
)&lt;/LI-CODE&gt;
&lt;P&gt;Please provide a screenshot of the DAX and results hiding any sensetive data&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 11:13:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-sales-and-compare-them-with-a-custom-calendar/m-p/3133239#M111564</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-03-15T11:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to get sales and compare them with a custom calendar?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-sales-and-compare-them-with-a-custom-calendar/m-p/3133258#M111566</link>
      <description>&lt;P&gt;Sorry, my mistake, I forgot the comma after USERELATIONSHIP&amp;nbsp; hahaha&amp;nbsp;&lt;BR /&gt;Aparently, its working fine.Now, to be sure that the 2019Sales are working fine, How can I know that for example the date 2023-03-14 is compared against 2019-03-12? Can I obtain those values?&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;LI-CODE lang="css"&gt;2019Sales = 
CALCULATE( DETALLE_GRUPO[TotalSales_2023], USERELATIONSHIP('Tabla Calendario'[Custom2019], DETALLE_GRUPO[Fecha]), KEEPFILTERS ('Tabla Calendario'[Date] &amp;lt;= TODAY ()) ) &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;&lt;P&gt;Thanks for your support,&amp;nbsp;I gave myself too many turns and the solution was not that difficult&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":pensive_face:"&gt;😔&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 11:24:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-sales-and-compare-them-with-a-custom-calendar/m-p/3133258#M111566</guid>
      <dc:creator>EgMorel</dc:creator>
      <dc:date>2023-03-15T11:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to get sales and compare them with a custom calendar?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-sales-and-compare-them-with-a-custom-calendar/m-p/3133322#M111573</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="529319" data-lia-user-login="EgMorel" class="lia-mention lia-mention-user"&gt;EgMorel&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;No problem &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;BR /&gt;you can create hard codded measures like&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;CALCULATE( [TotalSales_2023], 'Tabla Calendario'[Date] = DATE ( 2019, 3, 12 ) ) &lt;/LI-CODE&gt;
&lt;P&gt;and place it in a card visual&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 11:55:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-sales-and-compare-them-with-a-custom-calendar/m-p/3133322#M111573</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-03-15T11:55:25Z</dc:date>
    </item>
  </channel>
</rss>

