<?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: first apply slicer value, then group by and then concatenate/roll-up cells in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/first-apply-slicer-value-then-group-by-and-then-concatenate-roll/m-p/2425933#M64427</link>
    <description>&lt;P&gt;Hi， &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="210735" data-lia-user-login="dkeerthi" class="lia-mention lia-mention-user"&gt;dkeerthi&lt;/a&gt;&amp;nbsp;；&lt;/P&gt;
&lt;P&gt;Is your problem solved? If so, Would you mind accept the helpful replies as solutions? Then we are able to close the thread. More people who have the same requirement will find the solution quickly and benefit here. Thank you.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Yalan Wu&lt;BR /&gt;If this post &lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Mar 2022 06:19:24 GMT</pubDate>
    <dc:creator>v-yalanwu-msft</dc:creator>
    <dc:date>2022-03-30T06:19:24Z</dc:date>
    <item>
      <title>first apply slicer value, then group by and then concatenate/roll-up cells</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/first-apply-slicer-value-then-group-by-and-then-concatenate-roll/m-p/2404050#M63057</link>
      <description>&lt;P&gt;I have the below table as raw data:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;How do i generate the below output table for slicer value - 2021 and 2022. I want to first apply the slicer value on year column, then group the procedures by person, then get a count. For ex: john has 2 procedures A &amp;amp; B - so want to concantenate A+B and count is as 1.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2022 21:27:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/first-apply-slicer-value-then-group-by-and-then-concatenate-roll/m-p/2404050#M63057</guid>
      <dc:creator>dkeerthi</dc:creator>
      <dc:date>2022-03-18T21:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: first apply slicer value, then group by and then concatenate/roll-up cells</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/first-apply-slicer-value-then-group-by-and-then-concatenate-roll/m-p/2404184#M63061</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="210735" data-lia-user-login="dkeerthi" class="lia-mention lia-mention-user"&gt;dkeerthi&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I don't think there's an easy way to do this.&amp;nbsp;&lt;BR /&gt;I got something but it's not really flexible.&lt;BR /&gt;&lt;BR /&gt;You can make a Calculated Table with this code&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Procedures = 
CALCULATETABLE(
    SUMMARIZECOLUMNS(
        Data[Person],
        "Procedure",
            CONCATENATEX(
                VALUES( Data[Procedure] ),
                Data[Procedure],
                "+",
                Data[Procedure],
                ASC
            )
    ),
    Data[Year] IN {2021,2022}
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then, you can make a measure to count the number of rows of this table :&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Person_Count = COUNTROWS( Procedures )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then, you should be able to drag the field Data[Procedure] on the table with [Person_Count] on values.&lt;BR /&gt;&lt;BR /&gt;Maybe, someone has a better solution &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Mar 2022 00:30:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/first-apply-slicer-value-then-group-by-and-then-concatenate-roll/m-p/2404184#M63061</guid>
      <dc:creator>m3tr01d</dc:creator>
      <dc:date>2022-03-19T00:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: first apply slicer value, then group by and then concatenate/roll-up cells</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/first-apply-slicer-value-then-group-by-and-then-concatenate-roll/m-p/2407403#M63270</link>
      <description>&lt;P&gt;just wondering on how do i pass slicer values for years?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 18:23:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/first-apply-slicer-value-then-group-by-and-then-concatenate-roll/m-p/2407403#M63270</guid>
      <dc:creator>dkeerthi</dc:creator>
      <dc:date>2022-03-21T18:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: first apply slicer value, then group by and then concatenate/roll-up cells</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/first-apply-slicer-value-then-group-by-and-then-concatenate-roll/m-p/2407989#M63301</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="210735" data-lia-user-login="dkeerthi" class="lia-mention lia-mention-user"&gt;dkeerthi&lt;/a&gt;&amp;nbsp;;&lt;/P&gt;
&lt;P&gt;You could create a measure as follows:&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;Procedure2 = CONCATENATEX('Data',[Procedure],"+")&lt;/LI-CODE&gt;
&lt;P&gt;as count :&amp;nbsp;Through your description, I don't quite understand what your counting logic is, please correct me if I understand wrong.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;count = 
var _count=CALCULATE(COUNT(Data[Procedure]),FILTER(ALLSELECTED(Data),[Person]=MAX([Person])))
return IF(_count&amp;gt;1,1,2)&lt;/LI-CODE&gt;
&lt;P&gt;The final output is shown below:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Yalan Wu&lt;BR /&gt;If this post &lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 02:03:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/first-apply-slicer-value-then-group-by-and-then-concatenate-roll/m-p/2407989#M63301</guid>
      <dc:creator>v-yalanwu-msft</dc:creator>
      <dc:date>2022-03-22T02:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: first apply slicer value, then group by and then concatenate/roll-up cells</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/first-apply-slicer-value-then-group-by-and-then-concatenate-roll/m-p/2425933#M64427</link>
      <description>&lt;P&gt;Hi， &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="210735" data-lia-user-login="dkeerthi" class="lia-mention lia-mention-user"&gt;dkeerthi&lt;/a&gt;&amp;nbsp;；&lt;/P&gt;
&lt;P&gt;Is your problem solved? If so, Would you mind accept the helpful replies as solutions? Then we are able to close the thread. More people who have the same requirement will find the solution quickly and benefit here. Thank you.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Yalan Wu&lt;BR /&gt;If this post &lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 06:19:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/first-apply-slicer-value-then-group-by-and-then-concatenate-roll/m-p/2425933#M64427</guid>
      <dc:creator>v-yalanwu-msft</dc:creator>
      <dc:date>2022-03-30T06:19:24Z</dc:date>
    </item>
  </channel>
</rss>

