<?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: Calculation between a data table and a reference table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-between-a-data-table-and-a-reference-table/m-p/1928005#M41832</link>
    <description>&lt;LI-CODE lang="csharp"&gt;// It's very simple.
// Let's say you've put the
// distribution column in
// a slicer and you can
// select only one option
// at a time. Then this measure
// would give you the
// number of days (=times) where
// the measure [ecart_modelisation]
// is &amp;lt;= to the selected value/option.
// If there is more than one option
// visible in the current context,
// BLANK is returned.

[# Below or Equal] =
var DistributionVal =
    SELECTEDVALUE(
        dim_distribution[distribution]
    )
var Result = 
    IF( NOT ISBLANK( DistributionVal ),
        COUNTROWS(
            FILTER(
                DISTINCT( fact_points_mesure[dt(1j)] ),
                [ecart_modelisation] &amp;lt;= DistributionVal
            )
        )
    )
return
    Result&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 29 Jun 2021 10:46:56 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-06-29T10:46:56Z</dc:date>
    <item>
      <title>Calculation between a data table and a reference table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-between-a-data-table-and-a-reference-table/m-p/1917303#M41522</link>
      <description>&lt;P&gt;Hello to all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am asking for your help concerning a measurement between two tables:&lt;BR /&gt;A table that serves as a reference and a table of time-stamped data.&lt;/P&gt;&lt;P&gt;I have created a measure that calculates the difference between a theoretical power and a real power. This measure works:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I would like to be able to count the number of times that this difference is less than or equal to the values that I have in my reference table which is below:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I also present my time-stamped table :&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;There is no link for the moment between these two tables.&lt;/P&gt;&lt;P&gt;Do you think this is possible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance for your help,&lt;/P&gt;&lt;P&gt;Have a nice day&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jun 2021 11:26:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-between-a-data-table-and-a-reference-table/m-p/1917303#M41522</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-23T11:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation between a data table and a reference table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-between-a-data-table-and-a-reference-table/m-p/1917832#M41546</link>
      <description>&lt;P&gt;Yes, I think it's perfectly possible.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jun 2021 15:08:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-between-a-data-table-and-a-reference-table/m-p/1917832#M41546</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-23T15:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation between a data table and a reference table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-between-a-data-table-and-a-reference-table/m-p/1917954#M41557</link>
      <description>&lt;P&gt;Hello&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Great thanks, could you please explain how?&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Joel&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jun 2021 15:50:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-between-a-data-table-and-a-reference-table/m-p/1917954#M41557</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-23T15:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation between a data table and a reference table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-between-a-data-table-and-a-reference-table/m-p/1927833#M41824</link>
      <description>&lt;P&gt;Hello&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to ask you again about my request, could you please explain the request to create in order to realize my calculation?&lt;/P&gt;&lt;P&gt;Thank you in advance,&lt;/P&gt;&lt;P&gt;Sincerely&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 09:28:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-between-a-data-table-and-a-reference-table/m-p/1927833#M41824</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-29T09:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation between a data table and a reference table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-between-a-data-table-and-a-reference-table/m-p/1927986#M41830</link>
      <description>&lt;P&gt;Hi.&amp;nbsp; Some example data in table form or a link to the .pbix would have been very useful.&amp;nbsp; Try this measure out.&amp;nbsp; I haven't been able to test it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Distribution Measure =&amp;nbsp;&lt;/P&gt;&lt;P&gt;VAR _CurrentDistribution = SELECTEDVALUE('dim_distribution'[distribution])&lt;BR /&gt;VAR _Result =&lt;BR /&gt;COUNTROWS (&lt;BR /&gt;FILTER (&lt;BR /&gt;VALUES ( 'Table'[dt (1j)] ),&lt;BR /&gt;[ecart_modelisation] &amp;lt;= _CurrentDistribution&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;RETURN&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;_Result&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 10:34:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-between-a-data-table-and-a-reference-table/m-p/1927986#M41830</guid>
      <dc:creator>PaulOlding</dc:creator>
      <dc:date>2021-06-29T10:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation between a data table and a reference table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-between-a-data-table-and-a-reference-table/m-p/1928005#M41832</link>
      <description>&lt;LI-CODE lang="csharp"&gt;// It's very simple.
// Let's say you've put the
// distribution column in
// a slicer and you can
// select only one option
// at a time. Then this measure
// would give you the
// number of days (=times) where
// the measure [ecart_modelisation]
// is &amp;lt;= to the selected value/option.
// If there is more than one option
// visible in the current context,
// BLANK is returned.

[# Below or Equal] =
var DistributionVal =
    SELECTEDVALUE(
        dim_distribution[distribution]
    )
var Result = 
    IF( NOT ISBLANK( DistributionVal ),
        COUNTROWS(
            FILTER(
                DISTINCT( fact_points_mesure[dt(1j)] ),
                [ecart_modelisation] &amp;lt;= DistributionVal
            )
        )
    )
return
    Result&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 29 Jun 2021 10:46:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-between-a-data-table-and-a-reference-table/m-p/1928005#M41832</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-29T10:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation between a data table and a reference table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-between-a-data-table-and-a-reference-table/m-p/1938227#M42169</link>
      <description>&lt;P&gt;Hello&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp; and&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="150936" data-lia-user-login="PaulOlding" class="lia-mention lia-mention-user"&gt;PaulOlding&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your generous help, have a nice day,&lt;/P&gt;&lt;P&gt;Sincerely&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jul 2021 14:23:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-between-a-data-table-and-a-reference-table/m-p/1938227#M42169</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-07-05T14:23:47Z</dc:date>
    </item>
  </channel>
</rss>

