<?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: Quaterly target change - lookup value based on the date defines the quarter in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Quaterly-target-change-lookup-value-based-on-the-date-defines/m-p/2548788#M72063</link>
    <description>&lt;P&gt;Hi&amp;nbsp; &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="392873" data-lia-user-login="PowerZs" class="lia-mention lia-mention-user"&gt;PowerZs&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Here are the steps you can follow：&lt;/P&gt;
&lt;P&gt;1. Create calculated column.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Delivery stop target =
SWITCH(
   TRUE(),
    "Q"&amp;amp;""&amp;amp;QUARTER('Table'[report_date])="Q3"&amp;amp;&amp;amp;'Table'[Loop_code]="B26",55,
    "Q"&amp;amp;""&amp;amp;QUARTER('Table'[report_date])="Q4"&amp;amp;&amp;amp;'Table'[Loop_code]="B26",60)&lt;/LI-CODE&gt;
&lt;P&gt;2. Result:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly&lt;/P&gt;</description>
    <pubDate>Tue, 31 May 2022 02:35:40 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-05-31T02:35:40Z</dc:date>
    <item>
      <title>Quaterly target change - lookup value based on the date defines the quarter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Quaterly-target-change-lookup-value-based-on-the-date-defines/m-p/2539082#M71477</link>
      <description>&lt;P&gt;Dear PBI Community, I would like to have your support and ideas for the following topic. We got a quaterly changing target to our employees and that is against we would like to measure their performance. I would like to have the right target (defined for the quesrter) based on the date we are measuring against as an additonal column. Thanks&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;</description>
      <pubDate>Wed, 25 May 2022 13:38:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Quaterly-target-change-lookup-value-based-on-the-date-defines/m-p/2539082#M71477</guid>
      <dc:creator>PowerZs</dc:creator>
      <dc:date>2022-05-25T13:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: Quaterly target change - lookup value based on the date defines the quarter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Quaterly-target-change-lookup-value-based-on-the-date-defines/m-p/2539454#M71490</link>
      <description>&lt;P&gt;If you have a Quarter column on your date table, and your date table is in a one-to-many relationship with the report table, then you could add a new column like&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Target =
var currentLoopCode = 'Table'[Loop code]
return LOOKUPVALUE('Target'[Target number], 'Target'[Quarter], RELATED('Date'[Quarter]), 'Target'[Loop code], currentLoopCode)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 25 May 2022 15:41:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Quaterly-target-change-lookup-value-based-on-the-date-defines/m-p/2539454#M71490</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-05-25T15:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Quaterly target change - lookup value based on the date defines the quarter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Quaterly-target-change-lookup-value-based-on-the-date-defines/m-p/2541377#M71583</link>
      <description>&lt;P&gt;Thanks for your support. Will check and come back if that resolves the issue.&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 11:59:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Quaterly-target-change-lookup-value-based-on-the-date-defines/m-p/2541377#M71583</guid>
      <dc:creator>PowerZs</dc:creator>
      <dc:date>2022-05-26T11:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: Quaterly target change - lookup value based on the date defines the quarter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Quaterly-target-change-lookup-value-based-on-the-date-defines/m-p/2548788#M72063</link>
      <description>&lt;P&gt;Hi&amp;nbsp; &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="392873" data-lia-user-login="PowerZs" class="lia-mention lia-mention-user"&gt;PowerZs&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Here are the steps you can follow：&lt;/P&gt;
&lt;P&gt;1. Create calculated column.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Delivery stop target =
SWITCH(
   TRUE(),
    "Q"&amp;amp;""&amp;amp;QUARTER('Table'[report_date])="Q3"&amp;amp;&amp;amp;'Table'[Loop_code]="B26",55,
    "Q"&amp;amp;""&amp;amp;QUARTER('Table'[report_date])="Q4"&amp;amp;&amp;amp;'Table'[Loop_code]="B26",60)&lt;/LI-CODE&gt;
&lt;P&gt;2. Result:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2022 02:35:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Quaterly-target-change-lookup-value-based-on-the-date-defines/m-p/2548788#M72063</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-31T02:35:40Z</dc:date>
    </item>
  </channel>
</rss>

