<?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: Divide per Category, combining Products in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-per-Category-combining-Products/m-p/4007127#M156948</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;can you clarify the value of Product D in Category C Changed from blank to 8 is this intentional?&lt;/P&gt;</description>
    <pubDate>Mon, 24 Jun 2024 14:22:01 GMT</pubDate>
    <dc:creator>JohnAPD</dc:creator>
    <dc:date>2024-06-24T14:22:01Z</dc:date>
    <item>
      <title>Divide per Category, combining Products</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-per-Category-combining-Products/m-p/4007041#M156947</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm currently facing an issue with a divide measure in Power BI.&lt;/P&gt;&lt;P&gt;Here's a simplified version of my data:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create a measure for the last column that calculates Measure 1 divided by Measure 2. The desired result should look like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The challenge is that I need this measure without grouping the products, as new products are frequently added. I've attempted to use the REMOVEFILTERS and ALL functions, and I have managed to create two separate measures successfully, but combining measures ends in an incorrect total value.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could anyone suggest an approach to solve this using DAX?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2024 13:42:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-per-Category-combining-Products/m-p/4007041#M156947</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-24T13:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: Divide per Category, combining Products</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-per-Category-combining-Products/m-p/4007127#M156948</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;can you clarify the value of Product D in Category C Changed from blank to 8 is this intentional?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2024 14:22:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-per-Category-combining-Products/m-p/4007127#M156948</guid>
      <dc:creator>JohnAPD</dc:creator>
      <dc:date>2024-06-24T14:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: Divide per Category, combining Products</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-per-Category-combining-Products/m-p/4007153#M156949</link>
      <description>&lt;P&gt;If this is the case then you could create a filter measure to use in the filter pane:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;BooleanInclude = 
 VAR _Msr1 =
    CALCULATE ( SUM ( 'Table'[Measure1] ) )
VAR _Msr2 =
    CALCULATE ( SUM ( 'Table'[Measure2] ) )
RETURN
    IF (
        OR ( ISBLANK ( _Msr1 ), ISBLANK ( _Msr2 ) ),
        0,
        1
    )&lt;/LI-CODE&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Measure (Measure 1 / Measure 2) = 
DIVIDE (
    CALCULATE ( SUM ( 'Table'[Measure1] ) ),
    CALCULATE ( SUM ( 'Table'[Measure2] ) ),
    BLANK ()
)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 24 Jun 2024 14:36:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-per-Category-combining-Products/m-p/4007153#M156949</guid>
      <dc:creator>JohnAPD</dc:creator>
      <dc:date>2024-06-24T14:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: Divide per Category, combining Products</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-per-Category-combining-Products/m-p/4007590#M156984</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can you explain how come the for category D the measure values is becoming 8?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2024 18:41:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-per-Category-combining-Products/m-p/4007590#M156984</guid>
      <dc:creator>Ankur04</dc:creator>
      <dc:date>2024-06-24T18:41:47Z</dc:date>
    </item>
  </channel>
</rss>

