<?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: Calculate max value with conditions in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-max-value-with-conditions/m-p/2441237#M65366</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="326819" data-lia-user-login="andrieskoo" class="lia-mention lia-mention-user"&gt;andrieskoo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've had a look at the file... Is this at all a PBI model or just a data dump? All the tables are disconnected in there, which makes me think the author does not yet fully understand the basic dimensional modeling principles Power BI is based on. My kind advice would be to first focus on some PBI theory, then on building a good dimensional model (&lt;STRONG&gt;which is always crucial to producing good correct numbers&lt;/STRONG&gt;) and then on starting writing correct measures. As it currently stands, this solution will fall apart sooner than anyone thinks.&lt;/P&gt;</description>
    <pubDate>Wed, 06 Apr 2022 16:24:38 GMT</pubDate>
    <dc:creator>daXtreme</dc:creator>
    <dc:date>2022-04-06T16:24:38Z</dc:date>
    <item>
      <title>Calculate max value with conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-max-value-with-conditions/m-p/2433828#M64903</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I have a problem with calculating max value witch is in special condition.&lt;/P&gt;&lt;P&gt;Expected result column x&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;all value between columns -20 till 20 calkulating by measure depending from t (is column in tale) and I want to calculate value in column x wich is a max value in row and must be &amp;gt; than value column and &amp;lt; than value from next column, else is 10&lt;/P&gt;</description>
      <pubDate>Sun, 03 Apr 2022 18:28:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-max-value-with-conditions/m-p/2433828#M64903</guid>
      <dc:creator>andrieskoo</dc:creator>
      <dc:date>2022-04-03T18:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate max value with conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-max-value-with-conditions/m-p/2433847#M64908</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="326819" data-lia-user-login="andrieskoo" class="lia-mention lia-mention-user"&gt;andrieskoo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what are the matrix columns from -20 to 20? Are they values in a column in your data or measures? What are the columns invloved in the rows of your matrix visual? Please provide sample data with the code of your measure(s).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Apr 2022 20:08:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-max-value-with-conditions/m-p/2433847#M64908</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-03T20:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate max value with conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-max-value-with-conditions/m-p/2433854#M64911</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;columns from -20 to 20 is value from another table (not in relationship with table witch have column "Kod"), and it is measure&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;and one of measure wich is related to earch column is&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;And I calculate this value (for earch temperature) adding column "Temperatura zewn." to wisualization&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Apr 2022 20:22:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-max-value-with-conditions/m-p/2433854#M64911</guid>
      <dc:creator>andrieskoo</dc:creator>
      <dc:date>2022-04-03T20:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate max value with conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-max-value-with-conditions/m-p/2433867#M64913</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="326819" data-lia-user-login="andrieskoo" class="lia-mention lia-mention-user"&gt;andrieskoo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what is under "kod" in the matix hierarchy?&lt;/P&gt;</description>
      <pubDate>Sun, 03 Apr 2022 20:57:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-max-value-with-conditions/m-p/2433867#M64913</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-03T20:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate max value with conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-max-value-with-conditions/m-p/2433880#M64914</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;it could be deleted&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I need only this max value for "Kod" columns, all this temperature (-20 to 20) could be hiden&lt;BR /&gt;&lt;BR /&gt;pehaps, I must calculate "x_pompy" in measure, witch calculate max value, but I do not know how&lt;/P&gt;</description>
      <pubDate>Sun, 03 Apr 2022 21:11:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-max-value-with-conditions/m-p/2433880#M64914</guid>
      <dc:creator>andrieskoo</dc:creator>
      <dc:date>2022-04-03T21:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate max value with conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-max-value-with-conditions/m-p/2433893#M64916</link>
      <description>&lt;P&gt;I calculate, but how calculate all in measure, not adding "Temperatura zewn" colunm to wizualization?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;Because when I remove column "Temperatura zewn" result of measure gone (they are based on this temperature)&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;</description>
      <pubDate>Sun, 03 Apr 2022 21:58:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-max-value-with-conditions/m-p/2433893#M64916</guid>
      <dc:creator>andrieskoo</dc:creator>
      <dc:date>2022-04-03T21:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate max value with conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-max-value-with-conditions/m-p/2434221#M64929</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="326819" data-lia-user-login="andrieskoo" class="lia-mention lia-mention-user"&gt;andrieskoo&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;One option is to have this value in the rows grand total of your original matrix&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;You can use a new measure&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="php"&gt;New Measure =
IF ( HASONEVALUE ( _Budynek[Temperatura zewn] ), [Fist Measure], [2nd Measure] )&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 04 Apr 2022 03:24:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-max-value-with-conditions/m-p/2434221#M64929</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-04T03:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate max value with conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-max-value-with-conditions/m-p/2439052#M65226</link>
      <description>&lt;P&gt;How to display same result without Temperatura zewn kolumn in visualization?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 21:05:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-max-value-with-conditions/m-p/2439052#M65226</guid>
      <dc:creator>andrieskoo</dc:creator>
      <dc:date>2022-04-05T21:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate max value with conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-max-value-with-conditions/m-p/2439059#M65228</link>
      <description>&lt;P&gt;Can you please share a sample file?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 21:13:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-max-value-with-conditions/m-p/2439059#M65228</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-05T21:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate max value with conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-max-value-with-conditions/m-p/2440441#M65302</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Here&amp;nbsp;&lt;A href="https://we.tl/t-zi4u0XfzHH" target="_blank"&gt;https://we.tl/t-zi4u0XfzHH&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 10:58:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-max-value-with-conditions/m-p/2440441#M65302</guid>
      <dc:creator>andrieskoo</dc:creator>
      <dc:date>2022-04-06T10:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate max value with conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-max-value-with-conditions/m-p/2441237#M65366</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="326819" data-lia-user-login="andrieskoo" class="lia-mention lia-mention-user"&gt;andrieskoo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've had a look at the file... Is this at all a PBI model or just a data dump? All the tables are disconnected in there, which makes me think the author does not yet fully understand the basic dimensional modeling principles Power BI is based on. My kind advice would be to first focus on some PBI theory, then on building a good dimensional model (&lt;STRONG&gt;which is always crucial to producing good correct numbers&lt;/STRONG&gt;) and then on starting writing correct measures. As it currently stands, this solution will fall apart sooner than anyone thinks.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 16:24:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-max-value-with-conditions/m-p/2441237#M65366</guid>
      <dc:creator>daXtreme</dc:creator>
      <dc:date>2022-04-06T16:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate max value with conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-max-value-with-conditions/m-p/2441294#M65371</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="326819" data-lia-user-login="andrieskoo" class="lia-mention lia-mention-user"&gt;andrieskoo&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I spent a while looking into it but apparently could not understand almost anything. That is beyond&amp;nbsp;my capabilities. Apologies for not being able to serve you properly.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 16:33:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-max-value-with-conditions/m-p/2441294#M65371</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-06T16:33:23Z</dc:date>
    </item>
  </channel>
</rss>

