<?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: Count number of orders for each restaurant and multiply by min and max product price then sum in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-orders-for-each-restaurant-and-multiply-by-min/m-p/4419751#M175479</link>
    <description>&lt;P&gt;That worked great&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="833383" data-lia-user-login="FarhanJeelani" class="lia-mention lia-mention-user"&gt;FarhanJeelani&lt;/a&gt;! Thank you for your patience with this and sharing your expertise!!&lt;/P&gt;</description>
    <pubDate>Thu, 20 Feb 2025 13:06:05 GMT</pubDate>
    <dc:creator>twixy</dc:creator>
    <dc:date>2025-02-20T13:06:05Z</dc:date>
    <item>
      <title>Count number of orders for each restaurant and multiply by min and max product price then sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-orders-for-each-restaurant-and-multiply-by-min/m-p/4419168#M175463</link>
      <description>&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to generate a plot of the minimum and maximum revenue for each restaurant that can be plotted on a line chart in powerbi and then is filterable by restaurant etc. I have looked into using measures, calculate, filterby, sumx and related etc. but am not quite sure how to put it together. Please help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tables A and B where they are linked by the column Order in Table A to column Product in Table B. I would like to generate the following:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Restaurant&lt;/TD&gt;&lt;TD&gt;Min. Revenue&lt;/TD&gt;&lt;TD&gt;Max. Revenue&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Restaurant A&lt;/TD&gt;&lt;TD&gt;1x$10 + 1x$0.40 = $10.40&lt;/TD&gt;&lt;TD&gt;1x$15 + 1x$0.60 = $15.60&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Restaurant B&lt;/TD&gt;&lt;TD&gt;2 x $10 = $20&lt;/TD&gt;&lt;TD&gt;$2 x $15 = $30&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table A&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Restaurant&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Order&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Restaurant A&lt;/TD&gt;&lt;TD&gt;Hamburger&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Restaurant A&lt;/TD&gt;&lt;TD&gt;Apple&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Restaurant B&lt;/TD&gt;&lt;TD&gt;Hamburger&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Restaurant B&lt;/TD&gt;&lt;TD&gt;Hamburger&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table B&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Product&lt;/TD&gt;&lt;TD&gt;Min. Price&lt;/TD&gt;&lt;TD&gt;Max Price&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Apple&lt;/TD&gt;&lt;TD&gt;$0.40&lt;/TD&gt;&lt;TD&gt;$0.60&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Hamburger&lt;/TD&gt;&lt;TD&gt;$10&lt;/TD&gt;&lt;TD&gt;$15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Water&lt;/TD&gt;&lt;TD&gt;$1&lt;/TD&gt;&lt;TD&gt;$2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any help you can provide!&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 07:25:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-orders-for-each-restaurant-and-multiply-by-min/m-p/4419168#M175463</guid>
      <dc:creator>twixy</dc:creator>
      <dc:date>2025-02-20T07:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: Count number of orders for each restaurant and multiply by min and max product price then sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-orders-for-each-restaurant-and-multiply-by-min/m-p/4419193#M175464</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="935387" data-lia-user-login="twixy" class="lia-mention lia-mention-user"&gt;twixy&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a measure for the minimum revenue&lt;BR /&gt;MinRevenue = &lt;BR /&gt;SUMX(&lt;BR /&gt;SUMMARIZE(&lt;BR /&gt;'Table A',&lt;BR /&gt;'Table A'[Restaurant],&lt;BR /&gt;'Table A'[Order],&lt;BR /&gt;"MinPrice", MINX(RELATEDTABLE('Table B'), 'Table B'[Min. Price])&lt;BR /&gt;),&lt;BR /&gt;[MinPrice]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;Create a measure for the maximum revenue&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;DAX&lt;BR /&gt;MaxRevenue = &lt;BR /&gt;SUMX(&lt;BR /&gt;SUMMARIZE(&lt;BR /&gt;'Table A',&lt;BR /&gt;'Table A'[Restaurant],&lt;BR /&gt;'Table A'[Order],&lt;BR /&gt;"MaxPrice", MAXX(RELATEDTABLE('Table B'), 'Table B'[Max Price])&lt;BR /&gt;),&lt;BR /&gt;[MaxPrice]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Create a table visual in Power BI&lt;BR /&gt;Add a table visual to your report.&lt;BR /&gt;Add the Restaurant column from Table A to the table visual.&lt;BR /&gt;Add the MinRevenue and MaxRevenue measures to the table visual&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 07:36:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-orders-for-each-restaurant-and-multiply-by-min/m-p/4419193#M175464</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2025-02-20T07:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: Count number of orders for each restaurant and multiply by min and max product price then sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-orders-for-each-restaurant-and-multiply-by-min/m-p/4419497#M175468</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="625922" data-lia-user-login="bhanu_gautam" class="lia-mention lia-mention-user"&gt;bhanu_gautam&lt;/a&gt;&amp;nbsp;, thanks for the quick response! For some reason the measure does not output a number and when I put it into a table it shows up a blank value. Not sure if something else I am doing is wrong - I checked the data type for the min and max price and they are all in decimal places. For the relationship, I've tried both one way and both ways but still can't get it to work. Any ideas what I might be missing? Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 10:29:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-orders-for-each-restaurant-and-multiply-by-min/m-p/4419497#M175468</guid>
      <dc:creator>twixy</dc:creator>
      <dc:date>2025-02-20T10:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: Count number of orders for each restaurant and multiply by min and max product price then sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-orders-for-each-restaurant-and-multiply-by-min/m-p/4419502#M175469</link>
      <description>&lt;P&gt;If I were in excel and trying to solve this in an inelegant manner, I would create a new column, for each row, use vlookup to find the min.Price or max.Price and return that into the column. Then I would sum if with the condition of the restaurant name. I haven't quite figured out if I should do something similar in powerbi.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 10:37:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-orders-for-each-restaurant-and-multiply-by-min/m-p/4419502#M175469</guid>
      <dc:creator>twixy</dc:creator>
      <dc:date>2025-02-20T10:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: Count number of orders for each restaurant and multiply by min and max product price then sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-orders-for-each-restaurant-and-multiply-by-min/m-p/4419540#M175470</link>
      <description>&lt;P&gt;Dear &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="935387" data-lia-user-login="twixy" class="lia-mention lia-mention-user"&gt;twixy&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;It looks like the original DAX formula you received isn’t returning values due to issues with the RELATEDTABLE() function. Please try using SUMX and LOOKUPVALUE to achieve the desired output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Corrected DAX Measures for Min and Max Revenue&lt;BR /&gt;Step 1: Create a Measure for Minimum Revenue&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;MinRevenue =
SUMX(
'Table A',
LOOKUPVALUE('Table B'[Min. Price], 'Table B'[Product], 'Table A'[Order])
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;Step 2: Create a Measure for Maximum Revenue&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;MaxRevenue =
SUMX(
'Table A',
LOOKUPVALUE('Table B'[Max Price], 'Table B'[Product], 'Table A'[Order])
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Please mark this post as solution if it helps you. Appreciate Kudos.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 11:04:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-orders-for-each-restaurant-and-multiply-by-min/m-p/4419540#M175470</guid>
      <dc:creator>FarhanJeelani</dc:creator>
      <dc:date>2025-02-20T11:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: Count number of orders for each restaurant and multiply by min and max product price then sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-orders-for-each-restaurant-and-multiply-by-min/m-p/4419636#M175473</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="833383" data-lia-user-login="FarhanJeelani" class="lia-mention lia-mention-user"&gt;FarhanJeelani&lt;/a&gt;&amp;nbsp;! I realized that I had a data input error that messed up the relatedtable function. Now that I have fixed it, I'm tryin &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="625922" data-lia-user-login="bhanu_gautam" class="lia-mention lia-mention-user"&gt;bhanu_gautam&lt;/a&gt;'s suggested DAX code and it is showing numbers but not the right one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I am getting back for Restaurant B is:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Restaurant&lt;/TD&gt;&lt;TD&gt;Min. Revenue&lt;/TD&gt;&lt;TD&gt;Max. Revenue&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Restaurant B (What I see now)&lt;/TD&gt;&lt;TD&gt;$10&lt;/TD&gt;&lt;TD&gt;$15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Restaurant B (What I want to get)&lt;/TD&gt;&lt;TD&gt;$10 x 2 = $20&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;$15 x 2 = $30&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Thu, 20 Feb 2025 11:54:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-orders-for-each-restaurant-and-multiply-by-min/m-p/4419636#M175473</guid>
      <dc:creator>twixy</dc:creator>
      <dc:date>2025-02-20T11:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: Count number of orders for each restaurant and multiply by min and max product price then sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-orders-for-each-restaurant-and-multiply-by-min/m-p/4419662#M175474</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="935387" data-lia-user-login="twixy" class="lia-mention lia-mention-user"&gt;twixy&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;try&amp;nbsp;&lt;BR /&gt;Minimum Revenue:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;MinRevenue =
SUMX (
VALUES ( 'Table A'[Order] ), -- Get unique orders
COUNTROWS ( FILTER ( 'Table A', 'Table A'[Order] = SELECTEDVALUE ( 'Table A'[Order] ) ) )
* LOOKUPVALUE ( 'Table B'[Min. Price], 'Table B'[Product], 'Table A'[Order] )
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;Maximum Revenue:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;MaxRevenue =
SUMX (
VALUES ( 'Table A'[Order] ), -- Get unique orders
COUNTROWS ( FILTER ( 'Table A', 'Table A'[Order] = SELECTEDVALUE ( 'Table A'[Order] ) ) )
* LOOKUPVALUE ( 'Table B'[Max Price], 'Table B'[Product], 'Table A'[Order] )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Please mark this post as solution if it helps you. Appreciate Kudos.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 12:07:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-orders-for-each-restaurant-and-multiply-by-min/m-p/4419662#M175474</guid>
      <dc:creator>FarhanJeelani</dc:creator>
      <dc:date>2025-02-20T12:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: Count number of orders for each restaurant and multiply by min and max product price then sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-orders-for-each-restaurant-and-multiply-by-min/m-p/4419715#M175476</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="833383" data-lia-user-login="FarhanJeelani" class="lia-mention lia-mention-user"&gt;FarhanJeelani&lt;/a&gt;,&amp;nbsp;I tried that but it does not return any values. Is there any way to edit the below code to get it to return the correct min revenue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MinRevenue =&lt;BR /&gt;SUMX(&lt;BR /&gt;SUMMARIZE(&lt;BR /&gt;'Table A',&lt;BR /&gt;'Table A'[Restaurant],&lt;BR /&gt;'Table A'[Order],&lt;BR /&gt;"MinPrice", MINX(RELATEDTABLE('Table B'), 'Table B'[Min. Price])&lt;BR /&gt;),&lt;BR /&gt;[MinPrice]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;Create a measure for the maximum revenue&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;DAX&lt;BR /&gt;MaxRevenue =&lt;BR /&gt;SUMX(&lt;BR /&gt;SUMMARIZE(&lt;BR /&gt;'Table A',&lt;BR /&gt;'Table A'[Restaurant],&lt;BR /&gt;'Table A'[Order],&lt;BR /&gt;"MaxPrice", MAXX(RELATEDTABLE('Table B'), 'Table B'[Max Price])&lt;BR /&gt;),&lt;BR /&gt;[MaxPrice]&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 12:44:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-orders-for-each-restaurant-and-multiply-by-min/m-p/4419715#M175476</guid>
      <dc:creator>twixy</dc:creator>
      <dc:date>2025-02-20T12:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: Count number of orders for each restaurant and multiply by min and max product price then sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-orders-for-each-restaurant-and-multiply-by-min/m-p/4419732#M175478</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="935387" data-lia-user-login="twixy" class="lia-mention lia-mention-user"&gt;twixy&lt;/a&gt;&amp;nbsp;,The issue seems to be that the formulas do not correctly account for multiple orders per restaurant. You need to count the number of times each product appears in Table A, then multiply it by the Min Price and Max Price from Table B.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Minimum Revenue:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;MinRevenue =
SUMX(
SUMMARIZE(
'Table A',
'Table A'[Restaurant],
'Table A'[Order],
"MinPrice", MINX(RELATEDTABLE('Table B'), 'Table B'[Min. Price]),
"OrderCount", COUNTROWS(FILTER('Table A', 'Table A'[Order] = EARLIER('Table A'[Order])))
),
[MinPrice] * [OrderCount]
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;Maximum Revenue:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;MaxRevenue =
SUMX(
SUMMARIZE(
'Table A',
'Table A'[Restaurant],
'Table A'[Order],
"MaxPrice", MAXX(RELATEDTABLE('Table B'), 'Table B'[Max Price]),
"OrderCount", COUNTROWS(FILTER('Table A', 'Table A'[Order] = EARLIER('Table A'[Order])))
),
[MaxPrice] * [OrderCount]
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 12:53:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-orders-for-each-restaurant-and-multiply-by-min/m-p/4419732#M175478</guid>
      <dc:creator>FarhanJeelani</dc:creator>
      <dc:date>2025-02-20T12:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: Count number of orders for each restaurant and multiply by min and max product price then sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-orders-for-each-restaurant-and-multiply-by-min/m-p/4419751#M175479</link>
      <description>&lt;P&gt;That worked great&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="833383" data-lia-user-login="FarhanJeelani" class="lia-mention lia-mention-user"&gt;FarhanJeelani&lt;/a&gt;! Thank you for your patience with this and sharing your expertise!!&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 13:06:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-orders-for-each-restaurant-and-multiply-by-min/m-p/4419751#M175479</guid>
      <dc:creator>twixy</dc:creator>
      <dc:date>2025-02-20T13:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: Count number of orders for each restaurant and multiply by min and max product price then sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-orders-for-each-restaurant-and-multiply-by-min/m-p/4419756#M175480</link>
      <description>&lt;P&gt;Dear&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="935387" data-lia-user-login="twixy" class="lia-mention lia-mention-user"&gt;twixy&lt;/a&gt;&amp;nbsp;, Please mark my post as solution if it helps you.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 13:09:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-orders-for-each-restaurant-and-multiply-by-min/m-p/4419756#M175480</guid>
      <dc:creator>FarhanJeelani</dc:creator>
      <dc:date>2025-02-20T13:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: Count number of orders for each restaurant and multiply by min and max product price then sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-orders-for-each-restaurant-and-multiply-by-min/m-p/4419759#M175481</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="833383" data-lia-user-login="FarhanJeelani" class="lia-mention lia-mention-user"&gt;FarhanJeelani&lt;/a&gt;, what would be your suggestion if I also wanted to then sum the min revenue across all restaurants? (i.e. get total min revenue = $10.40+$20 = $30.40 and total max revenue = $15.60+$30) Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 13:09:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-orders-for-each-restaurant-and-multiply-by-min/m-p/4419759#M175481</guid>
      <dc:creator>twixy</dc:creator>
      <dc:date>2025-02-20T13:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: Count number of orders for each restaurant and multiply by min and max product price then sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-orders-for-each-restaurant-and-multiply-by-min/m-p/4419763#M175482</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="935387" data-lia-user-login="twixy" class="lia-mention lia-mention-user"&gt;twixy&lt;/a&gt;&amp;nbsp;,&amp;nbsp;To sum the minimum and maximum revenue across all restaurants, you can modify the measures by removing the grouping by the restaurant and simply summing up the results.&lt;/P&gt;
&lt;P&gt;Let me know if you need dax for this.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 13:12:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-orders-for-each-restaurant-and-multiply-by-min/m-p/4419763#M175482</guid>
      <dc:creator>FarhanJeelani</dc:creator>
      <dc:date>2025-02-20T13:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: Count number of orders for each restaurant and multiply by min and max product price then sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-orders-for-each-restaurant-and-multiply-by-min/m-p/4419795#M175484</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="935387" data-lia-user-login="twixy" class="lia-mention lia-mention-user"&gt;twixy&lt;/a&gt;&amp;nbsp;Please find the attached PBIX&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 13:28:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-orders-for-each-restaurant-and-multiply-by-min/m-p/4419795#M175484</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2025-02-20T13:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: Count number of orders for each restaurant and multiply by min and max product price then sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-orders-for-each-restaurant-and-multiply-by-min/m-p/4419818#M175488</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="833383" data-lia-user-login="FarhanJeelani" class="lia-mention lia-mention-user"&gt;FarhanJeelani&lt;/a&gt;&amp;nbsp;, got it thanks! Also marked post as solution!&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 13:38:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-number-of-orders-for-each-restaurant-and-multiply-by-min/m-p/4419818#M175488</guid>
      <dc:creator>twixy</dc:creator>
      <dc:date>2025-02-20T13:38:51Z</dc:date>
    </item>
  </channel>
</rss>

