<?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: Quarter + Year Text field to date field AND QoQ/YoY calculation in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Quarter-Year-Text-field-to-date-field-AND-QoQ-YoY-calculation/m-p/1700993#M35021</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , Join is not correct. If you do not have date create one with help from Qtr year&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check my video for DAX option -&lt;A href="https://youtu.be/yPQ9UV37LOU" target="_blank" rel="noopener"&gt;https://youtu.be/yPQ9UV37LOU&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or Create a qtr Year table with YYYYQ as key on month side and use that for time intelligence&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;new column in Qtr year table&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Qtr Rank = RANKX(all('Date'),'Date'[Qtr Name],,ASC,Dense) //YYYYQ&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;refer: Power BI — Qtr on Qtr with or Without Time Intelligence &lt;BR /&gt;&lt;A href="https://medium.com/@amitchandak.1978/power-bi-qtd-questions-time-intelligence-2-5-d842063da839" target="_blank" rel="noopener"&gt;https://medium.com/@amitchandak.1978/power-bi-qtd-questions-time-intelligence-2-5-d842063da839&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.youtube.com/watch?v=8-TlVx7P0A0" target="_blank" rel="noopener"&gt;https://www.youtube.com/watch?v=8-TlVx7P0A0&lt;/A&gt;&lt;BR /&gt;This Qtr = CALCULATE(sum('order'[Qty]), FILTER(ALL('Date'),'Date'[Qtr Rank]=max('Date'[Qtr Rank])))&lt;BR /&gt;Last Qtr = CALCULATE(sum('order'[Qty]), FILTER(ALL('Date'),'Date'[Qtr Rank]=max('Date'[Qtr Rank])-1))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This Year = CALCULATE(sum('order'[Qty]),filter(ALL('Date'),'Date'[Year]=max('Date'[Year])))&lt;BR /&gt;Last Year = CALCULATE(sum('order'[Qty]),filter(ALL('Date'),'Date'[Year]=max('Date'[Year])-1))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Power BI — Year on Year with or Without Time Intelligence &lt;BR /&gt;&lt;A href="https://medium.com/@amitchandak.1978/power-bi-ytd-questions-time-intelligence-1-5-e3174b39f38a" target="_blank"&gt;https://medium.com/@amitchandak.1978/power-bi-ytd-questions-time-intelligence-1-5-e3174b39f38a&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.youtube.com/watch?v=km41KfM_0uA" target="_blank"&gt;https://www.youtube.com/watch?v=km41KfM_0uA&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Mar 2021 12:54:19 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2021-03-03T12:54:19Z</dc:date>
    <item>
      <title>Quarter + Year Text field to date field AND QoQ/YoY calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Quarter-Year-Text-field-to-date-field-AND-QoQ-YoY-calculation/m-p/1700968#M35019</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to find a solution to my problem. I will try to explain it as detailed as possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. I have tried to link my uploaded Excel file to a date table. The Excel file contains the following "time dimension", but it is recognized in powerbi as text format:&lt;/P&gt;&lt;P&gt;!NB note that there is more than one operator, meaning the quarters are repeated through the table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;This is linked to a datetable with a cardinality relationship many-to-many through a custom Quarter+Year colum in the datetable:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;My first question is: Is this a correct of linking the two table, and if not what is best practice to do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Second (which might be a consequence of not using best practice in first topic) is: when I try to calculate QoQ or YoY I am running into problems.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to use a DATEADD function as this seems to be recommended several times on this community.&lt;/P&gt;&lt;P&gt;when calculating Last quarter im using this dax formula:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LastQ = CALCULATE([Value],DATEADD('Date'[Date],-1,QUARTER) )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;and last year:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LY = CALCULATE(sum('2 2 1 Pivot Data (2)'[Værdi]), DATEADD('Date'[Date],-4, QUARTER))&lt;/LI-CODE&gt;&lt;P&gt;when putting the measures into a table with my original values I dont get any values in my table only when it sums up, meaning I can not make a measure calculating the difference between the quarters, I have tried it and it did not work. I am stuck and would very much appreciate if anyone have had the same issues and can help!&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 12:39:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Quarter-Year-Text-field-to-date-field-AND-QoQ-YoY-calculation/m-p/1700968#M35019</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-03T12:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: Quarter + Year Text field to date field AND QoQ/YoY calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Quarter-Year-Text-field-to-date-field-AND-QoQ-YoY-calculation/m-p/1700993#M35021</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , Join is not correct. If you do not have date create one with help from Qtr year&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check my video for DAX option -&lt;A href="https://youtu.be/yPQ9UV37LOU" target="_blank" rel="noopener"&gt;https://youtu.be/yPQ9UV37LOU&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or Create a qtr Year table with YYYYQ as key on month side and use that for time intelligence&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;new column in Qtr year table&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Qtr Rank = RANKX(all('Date'),'Date'[Qtr Name],,ASC,Dense) //YYYYQ&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;refer: Power BI — Qtr on Qtr with or Without Time Intelligence &lt;BR /&gt;&lt;A href="https://medium.com/@amitchandak.1978/power-bi-qtd-questions-time-intelligence-2-5-d842063da839" target="_blank" rel="noopener"&gt;https://medium.com/@amitchandak.1978/power-bi-qtd-questions-time-intelligence-2-5-d842063da839&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.youtube.com/watch?v=8-TlVx7P0A0" target="_blank" rel="noopener"&gt;https://www.youtube.com/watch?v=8-TlVx7P0A0&lt;/A&gt;&lt;BR /&gt;This Qtr = CALCULATE(sum('order'[Qty]), FILTER(ALL('Date'),'Date'[Qtr Rank]=max('Date'[Qtr Rank])))&lt;BR /&gt;Last Qtr = CALCULATE(sum('order'[Qty]), FILTER(ALL('Date'),'Date'[Qtr Rank]=max('Date'[Qtr Rank])-1))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This Year = CALCULATE(sum('order'[Qty]),filter(ALL('Date'),'Date'[Year]=max('Date'[Year])))&lt;BR /&gt;Last Year = CALCULATE(sum('order'[Qty]),filter(ALL('Date'),'Date'[Year]=max('Date'[Year])-1))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Power BI — Year on Year with or Without Time Intelligence &lt;BR /&gt;&lt;A href="https://medium.com/@amitchandak.1978/power-bi-ytd-questions-time-intelligence-1-5-e3174b39f38a" target="_blank"&gt;https://medium.com/@amitchandak.1978/power-bi-ytd-questions-time-intelligence-1-5-e3174b39f38a&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.youtube.com/watch?v=km41KfM_0uA" target="_blank"&gt;https://www.youtube.com/watch?v=km41KfM_0uA&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 12:54:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Quarter-Year-Text-field-to-date-field-AND-QoQ-YoY-calculation/m-p/1700993#M35021</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-03-03T12:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: Quarter + Year Text field to date field AND QoQ/YoY calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Quarter-Year-Text-field-to-date-field-AND-QoQ-YoY-calculation/m-p/1701026#M35022</link>
      <description>&lt;P&gt;Thank you for your almost Immediate response! I will look into this and give it a try. Truth is, I am very new to powerbi, so many things which are very basic for others are hard for me.&lt;BR /&gt;&lt;BR /&gt;Will return when I have tried your solution!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good day&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 13:12:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Quarter-Year-Text-field-to-date-field-AND-QoQ-YoY-calculation/m-p/1701026#M35022</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-03T13:12:50Z</dc:date>
    </item>
  </channel>
</rss>

