<?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 Need help in Dynamically selection of column value. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-in-Dynamically-selection-of-column-value/m-p/3929741#M152891</link>
    <description>&lt;P&gt;In my power bi report I want to create a dynamic header which will show Quarterly forecast based A column value.&lt;/P&gt;&lt;P&gt;I have a column called scenario having values ACTUAL, PLAN, DEC_FCST,MAR_FCST out of which MAR_FCST is the lastest quarter forecast. so in my report header It should show MAR_FCST. Now in next month (June) business will push JUNE FORECAST (JUN_FCST) anytime in next quarter time is not fixed when they will push but as soon as we will receive June forecast (jun_fcst) in scenario column out header should automatically update to jun_fcst and for next forecast which is September it should update to sep_fcst. So , please help to guide me how to achieve this in power bi, as I am new to the power bi.&lt;/P&gt;&lt;P&gt;Thank you in advance for your quick response and valuable time.&lt;/P&gt;</description>
    <pubDate>Sat, 18 May 2024 17:08:23 GMT</pubDate>
    <dc:creator>ShyamS</dc:creator>
    <dc:date>2024-05-18T17:08:23Z</dc:date>
    <item>
      <title>Need help in Dynamically selection of column value.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-in-Dynamically-selection-of-column-value/m-p/3929741#M152891</link>
      <description>&lt;P&gt;In my power bi report I want to create a dynamic header which will show Quarterly forecast based A column value.&lt;/P&gt;&lt;P&gt;I have a column called scenario having values ACTUAL, PLAN, DEC_FCST,MAR_FCST out of which MAR_FCST is the lastest quarter forecast. so in my report header It should show MAR_FCST. Now in next month (June) business will push JUNE FORECAST (JUN_FCST) anytime in next quarter time is not fixed when they will push but as soon as we will receive June forecast (jun_fcst) in scenario column out header should automatically update to jun_fcst and for next forecast which is September it should update to sep_fcst. So , please help to guide me how to achieve this in power bi, as I am new to the power bi.&lt;/P&gt;&lt;P&gt;Thank you in advance for your quick response and valuable time.&lt;/P&gt;</description>
      <pubDate>Sat, 18 May 2024 17:08:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-in-Dynamically-selection-of-column-value/m-p/3929741#M152891</guid>
      <dc:creator>ShyamS</dc:creator>
      <dc:date>2024-05-18T17:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in Dynamically selection of column value.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-in-Dynamically-selection-of-column-value/m-p/3929828#M152893</link>
      <description>&lt;P&gt;Yes I understand your question!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In your case you can use this syntax it will work definitely:-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Testmonthname = format(Today(),"mmm")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it works comment me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 May 2024 19:25:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-in-Dynamically-selection-of-column-value/m-p/3929828#M152893</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-18T19:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in Dynamically selection of column value.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-in-Dynamically-selection-of-column-value/m-p/3930216#M152902</link>
      <description>&lt;P&gt;Thank you Dinesh for your reply.&lt;/P&gt;&lt;P&gt;In this case every month header will change but in my case as soon as new entry will come into scenario column it will update accordingly that also quarterly basis not every month.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let's say currently in scenario column latest one is MAR_FCST so it will display that till the new entry is not come into scenario column which will be JUN_FCST in next quarter. Then JUN_FCST will display till next quarter and then after that SEP_FCST will display and so on.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But my issue is how we will automatically detect weither any new entry is made into scenario column and based on that change the header.&lt;/P&gt;&lt;P&gt;Please let me know if am not able to explain it properly. I will try to do it again.&lt;/P&gt;&lt;P&gt;Thank you for your response,&lt;span class="lia-unicode-emoji" title=":folded_hands:"&gt;🙏&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 19 May 2024 05:30:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-in-Dynamically-selection-of-column-value/m-p/3930216#M152902</guid>
      <dc:creator>ShyamS</dc:creator>
      <dc:date>2024-05-19T05:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in Dynamically selection of column value.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-in-Dynamically-selection-of-column-value/m-p/3931529#M152953</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="707964" data-lia-user-login="ShyamS" class="lia-mention lia-mention-user"&gt;ShyamS&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I create a table as you mentioned.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Then I create two calculated columns.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Latest Forecast =
VAR _Current =
    MONTH ( TODAY () )
RETURN
    LOOKUPVALUE (
        'Table'[scenario ],
        'Table'[Date], DATE ( YEAR ( TODAY () ), _Current, 1 )
    )&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Next Month =
VAR _Current =
    MONTH ( TODAY () ) + 1
RETURN
    LOOKUPVALUE (
        'Table'[scenario ],
        'Table'[Date], DATE ( YEAR ( TODAY () ), _Current, 1 )
    )&lt;/LI-CODE&gt;
&lt;P&gt;Then I use the Card visual and get what you want.&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;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;Yilong Zhou&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2024 06:45:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-in-Dynamically-selection-of-column-value/m-p/3931529#M152953</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-20T06:45:55Z</dc:date>
    </item>
  </channel>
</rss>

