<?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: My two tables are many-many.  How to make one-many with a slicer? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/My-two-tables-are-many-many-How-to-make-one-many-with-a-slicer/m-p/2485478#M68215</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="383228" data-lia-user-login="Bill_NYC" class="lia-mention lia-mention-user"&gt;Bill_NYC&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not sure what you want.&lt;/P&gt;
&lt;P&gt;Does the following formula not work in your &lt;SPAN&gt;many-many table&amp;nbsp;&lt;/SPAN&gt;model?&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = MAX('Table A'[price])*MAX('Table B'[discount_pct])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Eason&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 29 Apr 2022 09:49:45 GMT</pubDate>
    <dc:creator>v-easonf-msft</dc:creator>
    <dc:date>2022-04-29T09:49:45Z</dc:date>
    <item>
      <title>My two tables are many-many.  How to make one-many with a slicer?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/My-two-tables-are-many-many-How-to-make-one-many-with-a-slicer/m-p/2478630#M67776</link>
      <description>&lt;P&gt;I have two tables with a common column 'category':&lt;/P&gt;&lt;P&gt;A: category, product, price&lt;/P&gt;&lt;P&gt;B: category, discount_level, discount_pct&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table A has multiple products per category and table B has multiple discount levels per category, so the relationship on category is many-many.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Question: How can I calculate price*discount_pct based on a discount level selected by the user in a slicer?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: I have a solution but it is too slow.&amp;nbsp; The solution is to transpose the discount levels into columns, which makese the category in table B unique, then use SWITCH to choose the correct column.&amp;nbsp; I would like to avoid transpose to see if I can improve the performance.&amp;nbsp; (I believe the performance is slow using transpose because it must calculate discounted prices at every discount level first, then select the correct version according to the user selection using SWITCH.)&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 19:14:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/My-two-tables-are-many-many-How-to-make-one-many-with-a-slicer/m-p/2478630#M67776</guid>
      <dc:creator>Bill_NYC</dc:creator>
      <dc:date>2022-04-26T19:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: My two tables are many-many.  How to make one-many with a slicer?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/My-two-tables-are-many-many-How-to-make-one-many-with-a-slicer/m-p/2478702#M67779</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;You could do something like creating a new table to be the brige table allowing for relatinoship measures.&lt;/P&gt;&lt;P&gt;&amp;nbsp;=DISTINCT(UNION(ALL(TableA[Category]), ALL(TableB[Category]).&lt;/P&gt;&lt;P&gt;This new table would join the other two tables with category.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 20:23:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/My-two-tables-are-many-many-How-to-make-one-many-with-a-slicer/m-p/2478702#M67779</guid>
      <dc:creator>Whitewater100</dc:creator>
      <dc:date>2022-04-26T20:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: My two tables are many-many.  How to make one-many with a slicer?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/My-two-tables-are-many-many-How-to-make-one-many-with-a-slicer/m-p/2480415#M67861</link>
      <description>&lt;P&gt;I had tried using a bridge table but that didn't solve it for me.&amp;nbsp; (I still have many-many until the user selects a discount level.)&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 12:15:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/My-two-tables-are-many-many-How-to-make-one-many-with-a-slicer/m-p/2480415#M67861</guid>
      <dc:creator>Bill_NYC</dc:creator>
      <dc:date>2022-04-27T12:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: My two tables are many-many.  How to make one-many with a slicer?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/My-two-tables-are-many-many-How-to-make-one-many-with-a-slicer/m-p/2480484#M67864</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think you are talking about make a New Parameter. And the values in the new parameter are the discount amounts. (.05, .1, etc - whatever ones you have).&lt;/P&gt;&lt;P&gt;I will attach a file showing how to implement this. In the attachment a user can select the rate of expected sales growth (the parameter) and that value is used in a measure. Page three of this report shows the parameter "Sales2" and the parameter measure "Sales Value" is used in the final measure "Goal". This same approach will work for you based on discounts. If you go to Modeling&amp;gt;New Parameter you will see the screenshot below. Once you key in your discount values a new slicer wil appear (for your users) and then you tie your measures into this parameter SELECTEDVALUE.&lt;/P&gt;&lt;P&gt;It wouldn't hurt to watch a 3-5 minute Youtube on Power BI Desktop New Parameter for extra background. I hope this input solves your question. You will notice there is a data model behind the scenes suppporting the analysis.&lt;/P&gt;&lt;P&gt;&lt;A title="Parameter page 3" href="https://drive.google.com/file/d/1VfghfltY9bseg0W-x4pyJeNLTXau-MCs/view?usp=sharing" target="_self"&gt;https://drive.google.com/file/d/1VfghfltY9bseg0W-x4pyJeNLTXau-MCs/view?usp=sharing&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this still sounds fuzzy, please post some example data for your tables and I will attempt to do it for you.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 12:48:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/My-two-tables-are-many-many-How-to-make-one-many-with-a-slicer/m-p/2480484#M67864</guid>
      <dc:creator>Whitewater100</dc:creator>
      <dc:date>2022-04-27T12:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: My two tables are many-many.  How to make one-many with a slicer?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/My-two-tables-are-many-many-How-to-make-one-many-with-a-slicer/m-p/2480941#M67892</link>
      <description>&lt;P&gt;Thanks but the discount percentages are different for each category so a parameter won't work (unless I'm missing something).&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 16:01:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/My-two-tables-are-many-many-How-to-make-one-many-with-a-slicer/m-p/2480941#M67892</guid>
      <dc:creator>Bill_NYC</dc:creator>
      <dc:date>2022-04-27T16:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: My two tables are many-many.  How to make one-many with a slicer?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/My-two-tables-are-many-many-How-to-make-one-many-with-a-slicer/m-p/2481163#M67913</link>
      <description>&lt;P&gt;Hi Bill:&lt;/P&gt;&lt;P&gt;If you supply sample data it can be figured out. Are your discounts for each category static or rolling based upon time intervals.&lt;/P&gt;&lt;P&gt;E.G. of &lt;U&gt;Configuration Table&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Category&amp;nbsp; &amp;nbsp;Discount %&amp;nbsp; &amp;nbsp; Start&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bikes&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;.10&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1-01-2022&amp;nbsp; &amp;nbsp; &amp;nbsp;2-01-2022&lt;/P&gt;&lt;P&gt;Bike&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;.07&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2-15-2022&amp;nbsp; &amp;nbsp; 2-28-2022&lt;/P&gt;&lt;P&gt;Biles&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .05&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3-01-2022&amp;nbsp;&lt;/P&gt;&lt;P&gt;Toys&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;.10&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2-01-2022&amp;nbsp; &amp;nbsp; &amp;nbsp; 4-15-2022&amp;nbsp; etc.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;etc.&lt;/P&gt;&lt;P&gt;If this is the case you'd need a separate config table to run logic thru. It's hard to guess without seeing some data and expected results.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 17:47:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/My-two-tables-are-many-many-How-to-make-one-many-with-a-slicer/m-p/2481163#M67913</guid>
      <dc:creator>Whitewater100</dc:creator>
      <dc:date>2022-04-27T17:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: My two tables are many-many.  How to make one-many with a slicer?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/My-two-tables-are-many-many-How-to-make-one-many-with-a-slicer/m-p/2485478#M68215</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="383228" data-lia-user-login="Bill_NYC" class="lia-mention lia-mention-user"&gt;Bill_NYC&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not sure what you want.&lt;/P&gt;
&lt;P&gt;Does the following formula not work in your &lt;SPAN&gt;many-many table&amp;nbsp;&lt;/SPAN&gt;model?&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = MAX('Table A'[price])*MAX('Table B'[discount_pct])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Eason&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 09:49:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/My-two-tables-are-many-many-How-to-make-one-many-with-a-slicer/m-p/2485478#M68215</guid>
      <dc:creator>v-easonf-msft</dc:creator>
      <dc:date>2022-04-29T09:49:45Z</dc:date>
    </item>
  </channel>
</rss>

