<?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 Count values from measure that's calculated from two tables in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-values-from-measure-that-s-calculated-from-two-tables/m-p/3095006#M108553</link>
    <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;Honestly I feel a bit silly. But I just can't get my head around this supposedly simple problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a measure (M3) that calculates the ratio between two other measures (M1 and M2). M1 and M2 are based on values from separate tables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The two separate tables are both related to&amp;nbsp; date, time and location dimensions. Table 1 is further related to a handfull of type dimensions. I need to be able to dynamically slice by both type, date, time and location.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;T1 is about 40 mill rows and T2 is about 5 mill rows. Size and not least datasources prevent me from creating a hybrid table so the soulution must be entirely measure based.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;M1 averages the sum pr day and hour based on the quarter column.&lt;/P&gt;&lt;P&gt;M2 averages the sum pr day and hour based on the Value column&lt;/P&gt;&lt;P&gt;M3 divides M2 with M1 to return the ratio between the two&lt;/P&gt;&lt;P&gt;Easy.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I count the number of times the ratio (M3) exceeds a value&amp;nbsp; (i.e. 5) and display the count in a matrix with location, date, time and types from the different dimensions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;T1 on the left T2 on the right&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Best regards&lt;/P&gt;&lt;P&gt;K&lt;/P&gt;</description>
    <pubDate>Fri, 24 Feb 2023 08:41:13 GMT</pubDate>
    <dc:creator>REGHnoob</dc:creator>
    <dc:date>2023-02-24T08:41:13Z</dc:date>
    <item>
      <title>Count values from measure that's calculated from two tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-values-from-measure-that-s-calculated-from-two-tables/m-p/3095006#M108553</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;Honestly I feel a bit silly. But I just can't get my head around this supposedly simple problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a measure (M3) that calculates the ratio between two other measures (M1 and M2). M1 and M2 are based on values from separate tables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The two separate tables are both related to&amp;nbsp; date, time and location dimensions. Table 1 is further related to a handfull of type dimensions. I need to be able to dynamically slice by both type, date, time and location.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;T1 is about 40 mill rows and T2 is about 5 mill rows. Size and not least datasources prevent me from creating a hybrid table so the soulution must be entirely measure based.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;M1 averages the sum pr day and hour based on the quarter column.&lt;/P&gt;&lt;P&gt;M2 averages the sum pr day and hour based on the Value column&lt;/P&gt;&lt;P&gt;M3 divides M2 with M1 to return the ratio between the two&lt;/P&gt;&lt;P&gt;Easy.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I count the number of times the ratio (M3) exceeds a value&amp;nbsp; (i.e. 5) and display the count in a matrix with location, date, time and types from the different dimensions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;T1 on the left T2 on the right&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Best regards&lt;/P&gt;&lt;P&gt;K&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 08:41:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-values-from-measure-that-s-calculated-from-two-tables/m-p/3095006#M108553</guid>
      <dc:creator>REGHnoob</dc:creator>
      <dc:date>2023-02-24T08:41:13Z</dc:date>
    </item>
  </channel>
</rss>

