<?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 Measure that adjusts with filters in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-adjusts-with-filters/m-p/3956385#M153563</link>
    <description>&lt;P&gt;Hey guys,&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my initial data, I have a bet account number and a row for every day along with the sport that they bet on and a few more dimensions, I then have a few numerical measures such as margin after specials (above).&lt;/P&gt;&lt;P&gt;Now when I apply different filters, Power BI will sum up the values to give the correct number for the filters I choose.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue I have is that I need to find a count of the account numbers that sit in a negative balance. For that I need to create a measure that sums the margin for every account number and that number will change depending on the filters applied.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Essentially the measure should store whatever number is connected to the account number in the table above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anybody help me ?&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>Wed, 29 May 2024 03:02:09 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-05-29T03:02:09Z</dc:date>
    <item>
      <title>Measure that adjusts with filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-adjusts-with-filters/m-p/3956385#M153563</link>
      <description>&lt;P&gt;Hey guys,&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my initial data, I have a bet account number and a row for every day along with the sport that they bet on and a few more dimensions, I then have a few numerical measures such as margin after specials (above).&lt;/P&gt;&lt;P&gt;Now when I apply different filters, Power BI will sum up the values to give the correct number for the filters I choose.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue I have is that I need to find a count of the account numbers that sit in a negative balance. For that I need to create a measure that sums the margin for every account number and that number will change depending on the filters applied.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Essentially the measure should store whatever number is connected to the account number in the table above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anybody help me ?&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>Wed, 29 May 2024 03:02:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-adjusts-with-filters/m-p/3956385#M153563</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-29T03:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: Measure that adjusts with filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-adjusts-with-filters/m-p/3956504#M153568</link>
      <description>&lt;P&gt;Try something like the below:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = COUNTROWS(FILTER(ADDCOLUMNS(VALUES(Table[Bet_Account_Num]), "Margin", CALCULATE(SUM(Table[Margin_After_Specials])), [Margin] &amp;lt; 0)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 29 May 2024 04:33:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-adjusts-with-filters/m-p/3956504#M153568</guid>
      <dc:creator>vicky_</dc:creator>
      <dc:date>2024-05-29T04:33:52Z</dc:date>
    </item>
  </channel>
</rss>

