<?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: Aggregation on rows with user selected filters in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Aggregation-on-rows-with-user-selected-filters/m-p/2188980#M51133</link>
    <description>&lt;P&gt;You are right; impossible is not the best word. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I would say not desirable at all.&amp;nbsp;I see this as a generic problem so I could have 100 types and then it wouldn't be an option.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Columns D:E are determined a priori.&amp;nbsp;I just uploaded a sample data:&lt;/P&gt;&lt;P&gt;&lt;A href="https://lksscoop-my.sharepoint.com/:x:/g/personal/m_baroja_lksscoop_onmicrosoft_com/ETEzg7DzztVOvPY4SkGEOvQByQ2qLojrv2Q9CEVqQNe7_g?e=QJChM0" target="_blank"&gt;https://lksscoop-my.sharepoint.com/:x:/g/personal/m_baroja_lksscoop_onmicrosoft_com/ETEzg7DzztVOvPY4SkGEOvQByQ2qLojrv2Q9CEVqQNe7_g?e=QJChM0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;There are over 100 features for an offer but i just included 9 of them (columns D:L).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MM.&lt;/P&gt;</description>
    <pubDate>Sun, 14 Nov 2021 20:52:38 GMT</pubDate>
    <dc:creator>mmbaroja</dc:creator>
    <dc:date>2021-11-14T20:52:38Z</dc:date>
    <item>
      <title>Aggregation on rows with user selected filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Aggregation-on-rows-with-user-selected-filters/m-p/2188931#M51120</link>
      <description>&lt;P&gt;Hello:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am trying to recreate an analysis done previously with QlikView:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;A sales offer includes five types of offer (depending on the team who worked on the offer), many features and a few versions. There are five types of sales offers .&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;The purpose of the report is to compare two types of an offer. For doing so, the report includes three slicers (offer id, offer type 1 and offer type 2). Once selected a value for the slicers, the report should display:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Group by offer, feature, feature value for offer type1, feature value for offer type 2 and concatenatex for revisions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The point is this table is generated once the user has selected offer type 1 and offer type 2, so I can't create it with Power Query and I can't create a calculated table with DAX either; create a table with all the combinations of all offer types is impossible due to the size.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;As far as I know, I should create three DAX measures (Revisions, Value type 1 and value type 2), but a measure returns an scalar value, so how I am supposed to return for one offer and one feature more than one value for each measure?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am probably missing something because I see no way out of this. And it is probably due to my short experience with DAX and PowerBI.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Many thanks in advance,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;MM.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Nov 2021 17:42:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Aggregation-on-rows-with-user-selected-filters/m-p/2188931#M51120</guid>
      <dc:creator>mmbaroja</dc:creator>
      <dc:date>2021-11-14T17:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation on rows with user selected filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Aggregation-on-rows-with-user-selected-filters/m-p/2188952#M51124</link>
      <description>&lt;P&gt;If you only have five types you can select two from, there are only 10 possible pairs to pick from, so pre-calculating all of them doesn't necessarily seem impossible but, ideally, there are better options.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are columns D:E calculated somehow or are the values already determined a priori?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It would help greatly if you could include some sample starting data you've got before you start trying to group and concatenate.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Nov 2021 18:45:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Aggregation-on-rows-with-user-selected-filters/m-p/2188952#M51124</guid>
      <dc:creator>AlexisOlson</dc:creator>
      <dc:date>2021-11-14T18:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation on rows with user selected filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Aggregation-on-rows-with-user-selected-filters/m-p/2188980#M51133</link>
      <description>&lt;P&gt;You are right; impossible is not the best word. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I would say not desirable at all.&amp;nbsp;I see this as a generic problem so I could have 100 types and then it wouldn't be an option.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Columns D:E are determined a priori.&amp;nbsp;I just uploaded a sample data:&lt;/P&gt;&lt;P&gt;&lt;A href="https://lksscoop-my.sharepoint.com/:x:/g/personal/m_baroja_lksscoop_onmicrosoft_com/ETEzg7DzztVOvPY4SkGEOvQByQ2qLojrv2Q9CEVqQNe7_g?e=QJChM0" target="_blank"&gt;https://lksscoop-my.sharepoint.com/:x:/g/personal/m_baroja_lksscoop_onmicrosoft_com/ETEzg7DzztVOvPY4SkGEOvQByQ2qLojrv2Q9CEVqQNe7_g?e=QJChM0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;There are over 100 features for an offer but i just included 9 of them (columns D:L).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MM.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Nov 2021 20:52:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Aggregation-on-rows-with-user-selected-filters/m-p/2188980#M51133</guid>
      <dc:creator>mmbaroja</dc:creator>
      <dc:date>2021-11-14T20:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation on rows with user selected filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Aggregation-on-rows-with-user-selected-filters/m-p/2190748#M51207</link>
      <description>&lt;P&gt;Can you share what rows and columns would correspond to your initial example? I'm having trouble matching up this spreadsheet with that example.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Nov 2021 16:53:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Aggregation-on-rows-with-user-selected-filters/m-p/2190748#M51207</guid>
      <dc:creator>AlexisOlson</dc:creator>
      <dc:date>2021-11-15T16:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation on rows with user selected filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Aggregation-on-rows-with-user-selected-filters/m-p/2190807#M51221</link>
      <description>&lt;P&gt;Sure!!&lt;/P&gt;&lt;P&gt;Find below an image with a simple example. One offer, one feature (just T_Max) and two type of offer: INC (user selected it as type offer1) and INP (user selected it as type offer 2).&lt;/P&gt;&lt;P&gt;Left side is the spreadsheet and right side is the initial example (what the report should show):&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;So the mapping from the spreadsheet I uploaded would be:&lt;/P&gt;&lt;P&gt;A: Num_Offer is column Offer of initial example&lt;/P&gt;&lt;P&gt;B: Version. After applying concatenatex this is Revisions of initial example.&amp;nbsp;&lt;/P&gt;&lt;P&gt;C: Offer Type. This is the type of offer and it is used to know where to put values of features&amp;nbsp; columns D and E of spreadsheet.&lt;/P&gt;&lt;P&gt;D-L: This is are a few features of the offer.&amp;nbsp; The name of the feature is the value of column B of the initial example.&amp;nbsp;Values from D-L (spreadsheet) are taken into columns D-E (initial example) based on the offer type selected by the user as the image above shows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Nov 2021 18:08:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Aggregation-on-rows-with-user-selected-filters/m-p/2190807#M51221</guid>
      <dc:creator>mmbaroja</dc:creator>
      <dc:date>2021-11-15T18:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation on rows with user selected filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Aggregation-on-rows-with-user-selected-filters/m-p/2190910#M51229</link>
      <description>&lt;P&gt;If you unpivot the features and define a custom column that groups the versions, this should be doable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See attached.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Nov 2021 19:16:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Aggregation-on-rows-with-user-selected-filters/m-p/2190910#M51229</guid>
      <dc:creator>AlexisOlson</dc:creator>
      <dc:date>2021-11-15T19:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation on rows with user selected filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Aggregation-on-rows-with-user-selected-filters/m-p/2192006#M51263</link>
      <description>&lt;P&gt;I see your approach but the value of the feature for offer type 2 should be included when grouping. For T_MAX, version 6 changes from 150 to 150000 when comparing INC with INP. But the report shows two rows for 6 (empty -&amp;gt; 150000 and 150 to empty)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also changed the value for 12 and the same:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As far as I can see, the value for offer type 2 should be included for grouping. And this means, combinations of types should be created as well. And this leads us to the original approach.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I correct?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 08:33:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Aggregation-on-rows-with-user-selected-filters/m-p/2192006#M51263</guid>
      <dc:creator>mmbaroja</dc:creator>
      <dc:date>2021-11-16T08:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation on rows with user selected filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Aggregation-on-rows-with-user-selected-filters/m-p/2192734#M51291</link>
      <description>&lt;P&gt;You'll have two rows regardless (either "6" and "9" or else "6" and "6,9"). The advantage of the way I did it is that the version strings can be pre-calculated. If you can come up with a better approach, then go for it.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 15:15:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Aggregation-on-rows-with-user-selected-filters/m-p/2192734#M51291</guid>
      <dc:creator>AlexisOlson</dc:creator>
      <dc:date>2021-11-16T15:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation on rows with user selected filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Aggregation-on-rows-with-user-selected-filters/m-p/2196032#M51438</link>
      <description>&lt;P&gt;Yes, I am afraid I should go for the initial approach and get the combinations, and the grouping for each feature. What I really wanted to know is that there is no possibility of doing it with just measures as it is done with Qlik. It's so easy; you just create a measure that returns multiple values and get the aggregation level that you need. You don't need to "pre-cook" all the data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess there are other scenarios where PowerBI is easier than Qlik. Many thanks for your help and your time. Really appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Nov 2021 07:52:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Aggregation-on-rows-with-user-selected-filters/m-p/2196032#M51438</guid>
      <dc:creator>mmbaroja</dc:creator>
      <dc:date>2021-11-18T07:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation on rows with user selected filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Aggregation-on-rows-with-user-selected-filters/m-p/2197004#M51483</link>
      <description>&lt;P&gt;The difficulty here is that you are essentially wanting to treat the list of versions as both a dynamic measure and a dimension at the same time. This is a pretty unusual situation.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Nov 2021 15:50:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Aggregation-on-rows-with-user-selected-filters/m-p/2197004#M51483</guid>
      <dc:creator>AlexisOlson</dc:creator>
      <dc:date>2021-11-18T15:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation on rows with user selected filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Aggregation-on-rows-with-user-selected-filters/m-p/2217660#M52531</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="131564" data-lia-user-login="mmbaroja" class="lia-mention lia-mention-user"&gt;mmbaroja&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm afraid this&amp;nbsp;can't be achieved in Power BI.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why do you want to display data like this? Can it be changed another way?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Icey&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;SPAN&gt;, then please consider&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 08:18:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Aggregation-on-rows-with-user-selected-filters/m-p/2217660#M52531</guid>
      <dc:creator>Icey</dc:creator>
      <dc:date>2021-12-02T08:18:25Z</dc:date>
    </item>
  </channel>
</rss>

