<?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 use case kind statement to search and display out put on another column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-case-kind-statement-to-search-and-display-out-put-on/m-p/3060221#M105700</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="509136" data-lia-user-login="Gopal_PV" class="lia-mention lia-mention-user"&gt;Gopal_PV&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please refer to attached sample file with the proposed solution&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Result = 
VAR CurrentDescription = 'Table'[FeeDescri]
VAR CurrentPeriod = 'Table'[Period]
VAR CurrentYear = LEFT ( CurrentPeriod, 4 )
VAR MonthOrQuarter1 = SUBSTITUTE ( CurrentPeriod, CurrentYear, "" )
VAR  MonthOrQuarter2 =
    IF (
        ISERROR ( VALUE ( CurrentPeriod) ), 
        SWITCH ( 
            RIGHT ( MonthOrQuarter1, 1 ),
            "1", "First Quarter",
            "2", "Second Quarter",
            "3", "Third Quarter",
            "4", "Fourth Quarter"
        ),
        FORMAT ( DATE ( CurrentYear, MonthOrQuarter1, 1 ), "mmmm" )
    )
RETURN
    MonthOrQuarter2 &amp;amp; " " &amp;amp; CurrentYear &amp;amp; " " &amp;amp; CurrentDescription&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 03 Feb 2023 11:41:25 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2023-02-03T11:41:25Z</dc:date>
    <item>
      <title>How to use case kind statement to search and display out put on another column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-case-kind-statement-to-search-and-display-out-put-on/m-p/3060130#M105686</link>
      <description>&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;I have Period ,FeeType, FeeDescri columns in my model. i want to add new column based on Period and Feetype.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ex: 2022Q1 and QF then i want to add First Quarter 2002 + FeeDescri&lt;/P&gt;&lt;P&gt;Ex2: 202209 and MF then i want to add September 2022+ FeeDescri&lt;/P&gt;&lt;P&gt;Can we achive this with DAX. Please help me&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 10:26:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-case-kind-statement-to-search-and-display-out-put-on/m-p/3060130#M105686</guid>
      <dc:creator>Gopal_PV</dc:creator>
      <dc:date>2023-02-03T10:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to use case kind statement to search and display out put on another column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-case-kind-statement-to-search-and-display-out-put-on/m-p/3060221#M105700</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="509136" data-lia-user-login="Gopal_PV" class="lia-mention lia-mention-user"&gt;Gopal_PV&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please refer to attached sample file with the proposed solution&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Result = 
VAR CurrentDescription = 'Table'[FeeDescri]
VAR CurrentPeriod = 'Table'[Period]
VAR CurrentYear = LEFT ( CurrentPeriod, 4 )
VAR MonthOrQuarter1 = SUBSTITUTE ( CurrentPeriod, CurrentYear, "" )
VAR  MonthOrQuarter2 =
    IF (
        ISERROR ( VALUE ( CurrentPeriod) ), 
        SWITCH ( 
            RIGHT ( MonthOrQuarter1, 1 ),
            "1", "First Quarter",
            "2", "Second Quarter",
            "3", "Third Quarter",
            "4", "Fourth Quarter"
        ),
        FORMAT ( DATE ( CurrentYear, MonthOrQuarter1, 1 ), "mmmm" )
    )
RETURN
    MonthOrQuarter2 &amp;amp; " " &amp;amp; CurrentYear &amp;amp; " " &amp;amp; CurrentDescription&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 03 Feb 2023 11:41:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-case-kind-statement-to-search-and-display-out-put-on/m-p/3060221#M105700</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-03T11:41:25Z</dc:date>
    </item>
  </channel>
</rss>

