<?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: same period last year dax and column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/same-period-last-year-dax-and-column/m-p/3277373#M121610</link>
    <description>&lt;P&gt;No they don't have the same results. I have 6-7 ID transaction2 the others can be &lt;SPAN&gt;same period Montant] * 0,75 or *0,50.... They don't have the same multiplicator. I just gave 3 examples.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jun 2023 23:23:02 GMT</pubDate>
    <dc:creator>sportive92003</dc:creator>
    <dc:date>2023-06-09T23:23:02Z</dc:date>
    <item>
      <title>same period last year dax and column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/same-period-last-year-dax-and-column/m-p/3277042#M121589</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to create this information: ID_transaction2 is a Column in the datebase and same period Montant is a calculate column (&lt;SPAN&gt;Same period Montant = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;([Montant tous], &lt;/SPAN&gt;&lt;SPAN&gt;DATEADD&lt;/SPAN&gt;&lt;SPAN&gt;(Dates[Date], -&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,YEAR)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;. I wrote:&lt;/P&gt;&lt;P&gt;Prevision =&lt;/P&gt;&lt;P&gt;if [ID transaction2]=("BLEU") then [same period Montant]*1.12&lt;/P&gt;&lt;P&gt;if [ID transaction2]=("BLANC") then [same period Montant]*1.2&lt;/P&gt;&lt;P&gt;if [ID transaction2]=("JAUJNE") then [same period Montant]*1.12&lt;/P&gt;&lt;P&gt;but does't work&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 17:45:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/same-period-last-year-dax-and-column/m-p/3277042#M121589</guid>
      <dc:creator>sportive92003</dc:creator>
      <dc:date>2023-06-09T17:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: same period last year dax and column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/same-period-last-year-dax-and-column/m-p/3277070#M121590</link>
      <description>&lt;P&gt;What are you trying to achieve? All your if statements have the same results.. Are you not wanting to evaluate for ONLY those values? Also, the syntax of this does not work for DAX and you might want to use the SWITCH function.&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/dax/switch-function-dax" target="_blank"&gt;https://learn.microsoft.com/en-us/dax/switch-function-dax&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 18:06:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/same-period-last-year-dax-and-column/m-p/3277070#M121590</guid>
      <dc:creator>Syk</dc:creator>
      <dc:date>2023-06-09T18:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: same period last year dax and column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/same-period-last-year-dax-and-column/m-p/3277217#M121598</link>
      <description>&lt;P&gt;This variable "prevision" becomes the Budget, so i'll need the results and multiplicate by the number of the month. To be clear:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"if [ID transaction2]=("BLEU") then [same period Montant]*1.12" for example the result is 237 000$, so 237 000 X 1 (for month 1) the result has to be 237 000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;237 000 X2 (for month 2) the result has to be 474 000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;237 000 X3 (for month 3)&amp;nbsp;the result has to be 711 000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Same for&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if [ID transaction2]=("BLANC") then [same period Montant]*1.2&lt;/P&gt;&lt;P&gt;if [ID transaction2]=("JAUJNE") then [same period Montant]*1.12.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After that I'll put a matrix to show for each ID transaction2 (in line), and in column for each month, showing :&lt;/P&gt;&lt;P&gt;1-amount of the amount for this month2,&lt;/P&gt;&lt;P&gt;2-cumulativ month1+month2,&lt;/P&gt;&lt;P&gt;3- previsions (month1 X 2&amp;nbsp;(or new name budget?).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EX for BLEU, for month2 (as month 1 is X1 so month2 will be clearer):&lt;/P&gt;&lt;P&gt;1-145 000 (I have this info)&lt;/P&gt;&lt;P&gt;2- 233000+145000=378 000&amp;nbsp;(I have this info)&lt;/P&gt;&lt;P&gt;3=&lt;SPAN&gt;474 000 (what I want to reach as formula)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 21:08:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/same-period-last-year-dax-and-column/m-p/3277217#M121598</guid>
      <dc:creator>sportive92003</dc:creator>
      <dc:date>2023-06-09T21:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: same period last year dax and column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/same-period-last-year-dax-and-column/m-p/3277373#M121610</link>
      <description>&lt;P&gt;No they don't have the same results. I have 6-7 ID transaction2 the others can be &lt;SPAN&gt;same period Montant] * 0,75 or *0,50.... They don't have the same multiplicator. I just gave 3 examples.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 23:23:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/same-period-last-year-dax-and-column/m-p/3277373#M121610</guid>
      <dc:creator>sportive92003</dc:creator>
      <dc:date>2023-06-09T23:23:02Z</dc:date>
    </item>
  </channel>
</rss>

