<?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: Calculating a dynamic benchmark with multiple conditions in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-dynamic-benchmark-with-multiple-conditions/m-p/2960800#M98595</link>
    <description>&lt;P&gt;I'm sorry I cannot provide any sample data. That's why I tried to describe my data model and tables completely. What is not clear?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 11 Dec 2022 12:34:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-12-11T12:34:41Z</dc:date>
    <item>
      <title>Calculating a dynamic benchmark with multiple conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-dynamic-benchmark-with-multiple-conditions/m-p/2959730#M98503</link>
      <description>&lt;P&gt;Hi all,&lt;BR /&gt;&lt;BR /&gt;I am struggling with a problem and I hope you can help.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;My star schema looks like this: fact sales, dim product, dim country, dim store&lt;BR /&gt;&lt;BR /&gt;I am trying to achieve the following (mind you I have a composite model in my report with 2 DQ connections and I cannot use PowerQuery)&lt;BR /&gt;&lt;BR /&gt;I have a measure 'revenue'. Based on this measure I want to calculate a revenue share % for my products against the total revenue.&lt;BR /&gt;Like:&amp;nbsp;&lt;BR /&gt;product A 20%&lt;BR /&gt;product B 14%&lt;BR /&gt;product C 0.4%&lt;BR /&gt;&lt;BR /&gt;This is achieved easily by a metric like:&amp;nbsp;&lt;BR /&gt;product revenue share %&lt;BR /&gt;VAR total_revenue_fixed = calculate([revenue],&amp;nbsp;&lt;SPAN&gt;REMOVEFILTERS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;dim_product&lt;/SPAN&gt;&lt;SPAN&gt;[product_name])&lt;BR /&gt;VAR revenue_product = [revenue]&lt;BR /&gt;RETURN&lt;BR /&gt;DIVIDE(revenue_product, total_revenue_fixedl)&lt;BR /&gt;&lt;BR /&gt;Now I want to add more complexity.&lt;BR /&gt;When selecting a store from a report slicer, I want to see the product revenue share % for similar stores (say store group).&amp;nbsp;&lt;BR /&gt;The problem is that I need an average of my original product revenue share % per store group to show up per store id (mapped to a certain store group).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;So I need an average measure of an existing measure in a new context, which is of course not possible in PBI. I need to make sure that my store slicer(s) do not affect my original 'product revenue share %' and its components (like total revenue).&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;How can I achieve this?&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;I hope it's clear what I am asking.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 19:07:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-dynamic-benchmark-with-multiple-conditions/m-p/2959730#M98503</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-09T19:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating a dynamic benchmark with multiple conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-dynamic-benchmark-with-multiple-conditions/m-p/2960465#M98559</link>
      <description>&lt;P&gt;Please provide sample data that covers your issue or question completely. &lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt; &lt;BR /&gt;Please show the expected outcome based on the sample data you provided. &lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Dec 2022 18:16:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-dynamic-benchmark-with-multiple-conditions/m-p/2960465#M98559</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2022-12-10T18:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating a dynamic benchmark with multiple conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-dynamic-benchmark-with-multiple-conditions/m-p/2960800#M98595</link>
      <description>&lt;P&gt;I'm sorry I cannot provide any sample data. That's why I tried to describe my data model and tables completely. What is not clear?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Dec 2022 12:34:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-dynamic-benchmark-with-multiple-conditions/m-p/2960800#M98595</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-11T12:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating a dynamic benchmark with multiple conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-dynamic-benchmark-with-multiple-conditions/m-p/2960814#M98597</link>
      <description>&lt;P&gt;"a certain store group".&lt;/P&gt;</description>
      <pubDate>Sun, 11 Dec 2022 13:16:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-dynamic-benchmark-with-multiple-conditions/m-p/2960814#M98597</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2022-12-11T13:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating a dynamic benchmark with multiple conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-dynamic-benchmark-with-multiple-conditions/m-p/2961862#M98689</link>
      <description>&lt;P&gt;That is an attribute of a store, something like a 'store type group', it's used as a slicer to filter on similar stores.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 08:33:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-dynamic-benchmark-with-multiple-conditions/m-p/2961862#M98689</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-12T08:33:33Z</dc:date>
    </item>
  </channel>
</rss>

