<?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: DAX mesaure : calculation of a value according to a measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-mesaure-calculation-of-a-value-according-to-a-measure/m-p/1593096#M31964</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="24715" data-lia-user-login="edhans" class="lia-mention lia-mention-user"&gt;edhans&lt;/a&gt;&amp;nbsp; and sorry for my response time.&lt;/P&gt;&lt;P&gt;Your formula was good it is in the choice of the table after "ALL (TABLE)" that I had not chosen the right data. Indeed my file is split into grouping of measures according to time intervals like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;After choosing the right time interval your code worked perfectly!&lt;BR /&gt;Thanks again and have a nice day,&lt;/P&gt;&lt;P&gt;Joel&lt;/P&gt;</description>
    <pubDate>Tue, 12 Jan 2021 13:31:30 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-01-12T13:31:30Z</dc:date>
    <item>
      <title>DAX mesaure : calculation of a value according to a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-mesaure-calculation-of-a-value-according-to-a-measure/m-p/1584845#M31709</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;Today I am asking you about a DAX measure. Indeed, for the calculation of a measure I need a variable. This variable is the turbidity value when the trubidity frequency in% between 0.20% and 0.21%:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The frequency calculation is a measure, here is the code:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Here is the code for the turbidity measurement:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;What is the formula to fill in for the calculation of this variable please?&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Joel&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2021 16:46:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-mesaure-calculation-of-a-value-according-to-a-measure/m-p/1584845#M31709</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-01-06T16:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: DAX mesaure : calculation of a value according to a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-mesaure-calculation-of-a-value-according-to-a-measure/m-p/1584923#M31710</link>
      <description>&lt;P&gt;A measure like this should work&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;Some Measure =
VAR varCurrentTurbidityFreq =
    MAX( 'Table'[TurbidityFreq] )
RETURN
    MAXX(
        FILTER(
            ALL( 'Table' ),
            'Table'[TurbidityFreq] &amp;gt; .20
                &amp;amp;&amp;amp; 'Table'[TurbidityFreq] &amp;lt; .21
        ),
        'Table'[Turbidity]
    )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I didn't test it though. You'd need to provide some test data. We cannot work with screenshots for test data, I'd have to key all of that in.&lt;/P&gt;
&lt;P&gt;How to get good help fast. Help us help you.&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank" rel="noopener"&gt;How to Get Your Question Answered Quickly&lt;/A&gt; - Give us a good and concise explanation&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" rel="noopener"&gt;How to provide sample data in the Power BI Forum&lt;/A&gt; - Provide data in a table format per the link, or share an Excel/CSV file via OneDrive, Dropbox, etc.. Provide expected output using a screenshot of Excel or other image. Do not provide a screenshot of the source data. I cannot paste an image into Power BI tables.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2021 17:24:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-mesaure-calculation-of-a-value-according-to-a-measure/m-p/1584923#M31710</guid>
      <dc:creator>edhans</dc:creator>
      <dc:date>2021-01-06T17:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: DAX mesaure : calculation of a value according to a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-mesaure-calculation-of-a-value-according-to-a-measure/m-p/1586605#M31776</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;- did that help at all?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to get good help fast. Help us help you.&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" rel="noopener" target="_blank"&gt;How to Get Your Question Answered Quickly&lt;/A&gt; - Give us a good and concise explanation&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" rel="noopener" target="_blank"&gt;How to provide sample data in the Power BI Forum&lt;/A&gt; - Provide data in a table format per the link, or share an Excel/CSV file via OneDrive, Dropbox, etc.. Provide expected output using a screenshot of Excel or other image. Do not provide a screenshot of the source data. I cannot paste an image into Power BI tables.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 16:32:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-mesaure-calculation-of-a-value-according-to-a-measure/m-p/1586605#M31776</guid>
      <dc:creator>edhans</dc:creator>
      <dc:date>2021-01-07T16:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: DAX mesaure : calculation of a value according to a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-mesaure-calculation-of-a-value-according-to-a-measure/m-p/1587513#M31824</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="24715" data-lia-user-login="edhans" class="lia-mention lia-mention-user"&gt;edhans&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Sorry for my response time.&lt;BR /&gt;Here is an excerpt of my PBIX in CSV format.&lt;BR /&gt;Thank you for your formula, unfortunately it does not work.&lt;BR /&gt;I hope the CSV file will bring more details.&lt;/P&gt;&lt;P&gt;Thank you in advance,&lt;/P&gt;&lt;P&gt;Joël&lt;/P&gt;&lt;P&gt;&lt;A title="CSV" href="https://1drv.ms/x/s!Ao1OrcTeY008gYUuuekGNOgd2j11NA?e=NWzVkK" target="_self"&gt;https://1drv.ms/x/s!Ao1OrcTeY008gYUuuekGNOgd2j11NA?e=NWzVkK&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 08:59:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-mesaure-calculation-of-a-value-according-to-a-measure/m-p/1587513#M31824</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-01-08T08:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: DAX mesaure : calculation of a value according to a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-mesaure-calculation-of-a-value-according-to-a-measure/m-p/1588109#M31843</link>
      <description>&lt;P&gt;It works for me&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;so maybe I am not understanding what you expect the results to be. Remember, I know nothing about your data and without googling, I don't know what turbidity means. I've heard the term, but couldn't intelligently use it in a sentence. I am an accountant, not a scientist. So if this isn't what you need, explain the logic of how to get what you want and then we will see if we can write a measure that does that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Some Measure = 
    MAXX(
        FILTER(
            ALL( Data ),
            Data[Fréquence turbidité (%)] &amp;gt; .20
                &amp;amp;&amp;amp; Data[Fréquence turbidité (%)] &amp;lt; .21
        ),
        Data[Turbidité]
    )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="tinyMceEditor_ab81c767a71c1edhans_1" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 18:18:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-mesaure-calculation-of-a-value-according-to-a-measure/m-p/1588109#M31843</guid>
      <dc:creator>edhans</dc:creator>
      <dc:date>2021-01-08T18:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: DAX mesaure : calculation of a value according to a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-mesaure-calculation-of-a-value-according-to-a-measure/m-p/1593096#M31964</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="24715" data-lia-user-login="edhans" class="lia-mention lia-mention-user"&gt;edhans&lt;/a&gt;&amp;nbsp; and sorry for my response time.&lt;/P&gt;&lt;P&gt;Your formula was good it is in the choice of the table after "ALL (TABLE)" that I had not chosen the right data. Indeed my file is split into grouping of measures according to time intervals like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;After choosing the right time interval your code worked perfectly!&lt;BR /&gt;Thanks again and have a nice day,&lt;/P&gt;&lt;P&gt;Joel&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2021 13:31:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-mesaure-calculation-of-a-value-according-to-a-measure/m-p/1593096#M31964</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-01-12T13:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: DAX mesaure : calculation of a value according to a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-mesaure-calculation-of-a-value-according-to-a-measure/m-p/1595019#M31969</link>
      <description>&lt;P&gt;Glad I was able to help&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2021 17:32:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-mesaure-calculation-of-a-value-according-to-a-measure/m-p/1595019#M31969</guid>
      <dc:creator>edhans</dc:creator>
      <dc:date>2021-01-12T17:32:06Z</dc:date>
    </item>
  </channel>
</rss>

