<?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: Problem with DAX formula (average of divided medians caluclated by conditions) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-DAX-formula-average-of-divided-medians-caluclated/m-p/2493853#M68750</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="202311" data-lia-user-login="BeaBF" class="lia-mention lia-mention-user"&gt;BeaBF&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please find under link excel file:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dropbox.com/scl/fi/bu334hhwdhdma93lrexvu/example.xlsx?dl=0&amp;amp;rlkey=3t28m1e0rkicalsg7a60b4me1" target="_blank"&gt;https://www.dropbox.com/scl/fi/bu334hhwdhdma93lrexvu/example.xlsx?dl=0&amp;amp;rlkey=3t28m1e0rkicalsg7a60b4me1&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 04 May 2022 15:29:43 GMT</pubDate>
    <dc:creator>n00ne</dc:creator>
    <dc:date>2022-05-04T15:29:43Z</dc:date>
    <item>
      <title>Problem with DAX formula (average of divided medians caluclated by conditions)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-DAX-formula-average-of-divided-medians-caluclated/m-p/2492898#M68700</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm new in DAX formulas and this one I am trying to figure out for few days now.&lt;/P&gt;&lt;P&gt;Below table is an example of how I got data structured.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;What I am trying to achieve is explained by below picture:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The end result (marked in yellow) is to have average from divided medians for each position and for each gender.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ideally would be also to have median calculated when there is at least 2 orrucances of each gender in respective position. Which basically means that in above example median for gender M should not be calculated, hence end result will be like below:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;This would be the ideal situation, but I am not sure if this is possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for all your help on this.&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 09:13:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-DAX-formula-average-of-divided-medians-caluclated/m-p/2492898#M68700</guid>
      <dc:creator>n00ne</dc:creator>
      <dc:date>2022-05-04T09:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with DAX formula (average of divided medians caluclated by conditions)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-DAX-formula-average-of-divided-medians-caluclated/m-p/2493018#M68703</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="385090" data-lia-user-login="n00ne" class="lia-mention lia-mention-user"&gt;n00ne&lt;/a&gt;&amp;nbsp; Hi!&lt;/P&gt;
&lt;P&gt;First of all i notice an error, the average for Position A and Gender M should be 8000, not 7000. In fact, 10000 + 7000 + 7000 = 24000 / 3 = 8000.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To achieve the first expected output, you can calculate this measure:&lt;/P&gt;
&lt;P&gt;AVG_SALARY = CALCULATE(AVERAGE(Tabella[Salary]), Tabella[Gender] = "F") / CALCULATE(AVERAGE(Tabella[Salary]), Tabella[Gender] = "M")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;by adding it to your matrix, you obtain:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Here the construction:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;where Average of salary is the average of the native field Salary, selected in this way:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BF&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 09:53:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-DAX-formula-average-of-divided-medians-caluclated/m-p/2493018#M68703</guid>
      <dc:creator>BeaBF</dc:creator>
      <dc:date>2022-05-04T09:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with DAX formula (average of divided medians caluclated by conditions)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-DAX-formula-average-of-divided-medians-caluclated/m-p/2493039#M68704</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="202311" data-lia-user-login="BeaBF" class="lia-mention lia-mention-user"&gt;BeaBF&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thank you for your prompt response.&lt;/P&gt;&lt;P&gt;We don't have averages in the table but medians. Average equation is done only at the end (average from divided medians).&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 10:05:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-DAX-formula-average-of-divided-medians-caluclated/m-p/2493039#M68704</guid>
      <dc:creator>n00ne</dc:creator>
      <dc:date>2022-05-04T10:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with DAX formula (average of divided medians caluclated by conditions)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-DAX-formula-average-of-divided-medians-caluclated/m-p/2493054#M68705</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="385090" data-lia-user-login="n00ne" class="lia-mention lia-mention-user"&gt;n00ne&lt;/a&gt;&amp;nbsp;Ok, so it is the same but with median, change the measure with:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;MEDIAN_SALARY = CALCULATE(MEDIAN(Tabella[Salary]), Tabella[Gender] = "F") / CALCULATE(MEDIAN(Tabella[Salary]), Tabella[Gender] = "M")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BF&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 10:11:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-DAX-formula-average-of-divided-medians-caluclated/m-p/2493054#M68705</guid>
      <dc:creator>BeaBF</dc:creator>
      <dc:date>2022-05-04T10:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with DAX formula (average of divided medians caluclated by conditions)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-DAX-formula-average-of-divided-medians-caluclated/m-p/2493077#M68707</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="202311" data-lia-user-login="BeaBF" class="lia-mention lia-mention-user"&gt;BeaBF&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;This would work only when in rows we will be having positions. I would need DAX formula doing the same as yours but when Position dimention is not in the visual. At the end I will need to have just the average value.&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 10:24:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-DAX-formula-average-of-divided-medians-caluclated/m-p/2493077#M68707</guid>
      <dc:creator>n00ne</dc:creator>
      <dc:date>2022-05-04T10:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with DAX formula (average of divided medians caluclated by conditions)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-DAX-formula-average-of-divided-medians-caluclated/m-p/2493119#M68708</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="385090" data-lia-user-login="n00ne" class="lia-mention lia-mention-user"&gt;n00ne&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;MEDIAN_SALARY = CALCULATE(MEDIAN(Tabella[Salary]), Tabella[Gender] = "F", ALLEXCEPT(Tabella, Tabella[Position])) / CALCULATE(MEDIAN(Tabella[Salary]), Tabella[Gender] = "M", ALLEXCEPT(Tabella, Tabella[Position]))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BF&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 10:40:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-DAX-formula-average-of-divided-medians-caluclated/m-p/2493119#M68708</guid>
      <dc:creator>BeaBF</dc:creator>
      <dc:date>2022-05-04T10:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with DAX formula (average of divided medians caluclated by conditions)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-DAX-formula-average-of-divided-medians-caluclated/m-p/2493274#M68717</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="202311" data-lia-user-login="BeaBF" class="lia-mention lia-mention-user"&gt;BeaBF&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I am not getting the same results using above formula as I am expecting.&lt;/P&gt;&lt;P&gt;When positions are in place row level calculations are allright.&lt;/P&gt;&lt;P&gt;When I am left with your calculation only I am getting value 1.07 where I would need averages from divides which is 1.01.&lt;/P&gt;&lt;P&gt;I also assume that adding to that measure condition that divide should be done only for positions when there at least 2 women and 2 men is problematic?&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 11:45:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-DAX-formula-average-of-divided-medians-caluclated/m-p/2493274#M68717</guid>
      <dc:creator>n00ne</dc:creator>
      <dc:date>2022-05-04T11:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with DAX formula (average of divided medians caluclated by conditions)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-DAX-formula-average-of-divided-medians-caluclated/m-p/2493385#M68726</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="385090" data-lia-user-login="n00ne" class="lia-mention lia-mention-user"&gt;n00ne&lt;/a&gt;&amp;nbsp;you can't have the result partitioned for position if you avoid to put the field in the table, because, by nature, the data resulting from the measurement are grouped.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BF&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 12:31:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-DAX-formula-average-of-divided-medians-caluclated/m-p/2493385#M68726</guid>
      <dc:creator>BeaBF</dc:creator>
      <dc:date>2022-05-04T12:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with DAX formula (average of divided medians caluclated by conditions)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-DAX-formula-average-of-divided-medians-caluclated/m-p/2493393#M68728</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="202311" data-lia-user-login="BeaBF" class="lia-mention lia-mention-user"&gt;BeaBF&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Any idea how I can get the needed result?&lt;/P&gt;&lt;P&gt;The result visualisation is not a table but line graph.&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 12:33:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-DAX-formula-average-of-divided-medians-caluclated/m-p/2493393#M68728</guid>
      <dc:creator>n00ne</dc:creator>
      <dc:date>2022-05-04T12:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with DAX formula (average of divided medians caluclated by conditions)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-DAX-formula-average-of-divided-medians-caluclated/m-p/2493423#M68730</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="385090" data-lia-user-login="n00ne" class="lia-mention lia-mention-user"&gt;n00ne&lt;/a&gt;&amp;nbsp;paste me a sample plis.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BF&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 12:42:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-DAX-formula-average-of-divided-medians-caluclated/m-p/2493423#M68730</guid>
      <dc:creator>BeaBF</dc:creator>
      <dc:date>2022-05-04T12:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with DAX formula (average of divided medians caluclated by conditions)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-DAX-formula-average-of-divided-medians-caluclated/m-p/2493457#M68732</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="202311" data-lia-user-login="BeaBF" class="lia-mention lia-mention-user"&gt;BeaBF&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Here you go:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Line chart will be the end result of this task.&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 12:55:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-DAX-formula-average-of-divided-medians-caluclated/m-p/2493457#M68732</guid>
      <dc:creator>n00ne</dc:creator>
      <dc:date>2022-05-04T12:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with DAX formula (average of divided medians caluclated by conditions)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-DAX-formula-average-of-divided-medians-caluclated/m-p/2493806#M68746</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="385090" data-lia-user-login="n00ne" class="lia-mention lia-mention-user"&gt;n00ne&lt;/a&gt;&amp;nbsp;ok, can you resend me this table with the correct field Date, to give you the same result?&lt;BR /&gt;Position Gender Salary&lt;BR /&gt;A F 10000&lt;BR /&gt;A F 6000&lt;BR /&gt;A M 7000&lt;BR /&gt;A M 10000&lt;BR /&gt;A M 7000&lt;BR /&gt;B F 6000&lt;BR /&gt;B F 4000&lt;BR /&gt;B M 6000&lt;BR /&gt;C F 10000&lt;BR /&gt;C F 9000&lt;BR /&gt;C M 9000&lt;BR /&gt;C M 9000&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thx,&lt;/P&gt;
&lt;P&gt;BF&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 15:04:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-DAX-formula-average-of-divided-medians-caluclated/m-p/2493806#M68746</guid>
      <dc:creator>BeaBF</dc:creator>
      <dc:date>2022-05-04T15:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with DAX formula (average of divided medians caluclated by conditions)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-DAX-formula-average-of-divided-medians-caluclated/m-p/2493853#M68750</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="202311" data-lia-user-login="BeaBF" class="lia-mention lia-mention-user"&gt;BeaBF&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please find under link excel file:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dropbox.com/scl/fi/bu334hhwdhdma93lrexvu/example.xlsx?dl=0&amp;amp;rlkey=3t28m1e0rkicalsg7a60b4me1" target="_blank"&gt;https://www.dropbox.com/scl/fi/bu334hhwdhdma93lrexvu/example.xlsx?dl=0&amp;amp;rlkey=3t28m1e0rkicalsg7a60b4me1&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 15:29:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-DAX-formula-average-of-divided-medians-caluclated/m-p/2493853#M68750</guid>
      <dc:creator>n00ne</dc:creator>
      <dc:date>2022-05-04T15:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with DAX formula (average of divided medians caluclated by conditions)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-DAX-formula-average-of-divided-medians-caluclated/m-p/2493865#M68753</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="385090" data-lia-user-login="n00ne" class="lia-mention lia-mention-user"&gt;n00ne&lt;/a&gt;&amp;nbsp;SOrry, i can't open the file...&lt;/P&gt;
&lt;P&gt;paste here the date column plis &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;THX,&lt;/P&gt;
&lt;P&gt;BF&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 15:33:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-DAX-formula-average-of-divided-medians-caluclated/m-p/2493865#M68753</guid>
      <dc:creator>BeaBF</dc:creator>
      <dc:date>2022-05-04T15:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with DAX formula (average of divided medians caluclated by conditions)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-DAX-formula-average-of-divided-medians-caluclated/m-p/2493900#M68755</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="202311" data-lia-user-login="BeaBF" class="lia-mention lia-mention-user"&gt;BeaBF&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Position Gender Salary Date&lt;BR /&gt;A F 10000 01/01/2021&lt;BR /&gt;A F 6000 01/01/2021&lt;BR /&gt;A M 7000 01/01/2021&lt;BR /&gt;A M 10000 01/01/2021&lt;BR /&gt;A M 7000 01/01/2021&lt;BR /&gt;B F 6000 01/01/2021&lt;BR /&gt;B F 4000 01/01/2021&lt;BR /&gt;B M 6000 01/01/2021&lt;BR /&gt;C F 10000 01/01/2021&lt;BR /&gt;C F 9000 01/01/2021&lt;BR /&gt;C M 9000 01/01/2021&lt;BR /&gt;C M 9000 01/01/2021&lt;BR /&gt;A F 9000 01/01/2021&lt;BR /&gt;A F 5000 01/01/2021&lt;BR /&gt;A M 1000 01/01/2021&lt;BR /&gt;A M 1000 01/01/2021&lt;BR /&gt;A M 2000 01/01/2021&lt;BR /&gt;A F 5800 01/02/2021&lt;BR /&gt;A F 8100 01/02/2021&lt;BR /&gt;A M 3800 01/02/2021&lt;BR /&gt;A M 6800 01/02/2021&lt;BR /&gt;A M 5100 01/02/2021&lt;BR /&gt;B F 5800 01/02/2021&lt;BR /&gt;B F 3400 01/02/2021&lt;BR /&gt;B M 9600 01/02/2021&lt;BR /&gt;C F 7400 01/02/2021&lt;BR /&gt;C F 6500 01/02/2021&lt;BR /&gt;C M 4700 01/02/2021&lt;BR /&gt;C M 4200 01/02/2021&lt;BR /&gt;A F 5400 01/02/2021&lt;BR /&gt;A F 3700 01/02/2021&lt;BR /&gt;A M 6100 01/02/2021&lt;BR /&gt;A M 5000 01/02/2021&lt;BR /&gt;A M 3900 01/02/2021&lt;BR /&gt;A F 8700 01/03/2021&lt;BR /&gt;A F 7400 01/03/2021&lt;BR /&gt;A M 6100 01/03/2021&lt;BR /&gt;A M 9700 01/03/2021&lt;BR /&gt;A M 8800 01/03/2021&lt;BR /&gt;B F 3400 01/03/2021&lt;BR /&gt;B F 9900 01/03/2021&lt;BR /&gt;B M 8900 01/03/2021&lt;BR /&gt;C F 4400 01/03/2021&lt;BR /&gt;C F 5800 01/03/2021&lt;BR /&gt;C M 6100 01/03/2021&lt;BR /&gt;C M 3000 01/03/2021&lt;BR /&gt;A F 6600 01/03/2021&lt;BR /&gt;A F 9100 01/03/2021&lt;BR /&gt;A M 6100 01/03/2021&lt;BR /&gt;A M 8400 01/03/2021&lt;BR /&gt;A M 8500 01/03/2021&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 15:42:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-DAX-formula-average-of-divided-medians-caluclated/m-p/2493900#M68755</guid>
      <dc:creator>n00ne</dc:creator>
      <dc:date>2022-05-04T15:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with DAX formula (average of divided medians caluclated by conditions)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-DAX-formula-average-of-divided-medians-caluclated/m-p/2493923#M68758</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="385090" data-lia-user-login="n00ne" class="lia-mention lia-mention-user"&gt;n00ne&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;MEDIAN = &lt;BR /&gt;VAR MEDIAN_F = CALCULATE(MEDIAN(Tabella[Salary]), Tabella[Gender] = "F") &lt;BR /&gt;VAR MEDIAN_M = CALCULATE(MEDIAN(Tabella[Salary]), Tabella[Gender] = "M") &lt;BR /&gt;RETURN MEDIAN_F / MEDIAN_M&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BF&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 15:51:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-DAX-formula-average-of-divided-medians-caluclated/m-p/2493923#M68758</guid>
      <dc:creator>BeaBF</dc:creator>
      <dc:date>2022-05-04T15:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with DAX formula (average of divided medians caluclated by conditions)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-DAX-formula-average-of-divided-medians-caluclated/m-p/2493958#M68760</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="202311" data-lia-user-login="BeaBF" class="lia-mention lia-mention-user"&gt;BeaBF&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's not quite the results I am expecting.&lt;/P&gt;&lt;P&gt;january should be 1.19&lt;/P&gt;&lt;P&gt;February 1.05&lt;/P&gt;&lt;P&gt;March 0.94&lt;/P&gt;&lt;P&gt;(as per calculations screen I have shared above)&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 16:02:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-DAX-formula-average-of-divided-medians-caluclated/m-p/2493958#M68760</guid>
      <dc:creator>n00ne</dc:creator>
      <dc:date>2022-05-04T16:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with DAX formula (average of divided medians caluclated by conditions)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-DAX-formula-average-of-divided-medians-caluclated/m-p/2494852#M68792</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="385090" data-lia-user-login="n00ne" class="lia-mention lia-mention-user"&gt;n00ne&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;One way to do that is by utilizing the column total to disply the F/M ratio.&lt;BR /&gt;Here is a sample file with the proposed solution&amp;nbsp;&lt;A href="https://we.tl/t-KF12DiUFOH" target="_blank" rel="noopener"&gt;https://we.tl/t-KF12DiUFOH&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Median Salary = 
VAR MedianSalary = 
    MEDIAN ( Salaries[Salary] )
VAR M_FRation =
    AVERAGEX ( 
        SUMMARIZE ( Salaries, Salaries[Position], Salaries[Gender] ),
        CALCULATE ( 
            DIVIDE ( 
                CALCULATE ( MEDIAN ( Salaries[Salary] ), Salaries[Gender] = "F" ), 
                CALCULATE ( MEDIAN ( Salaries[Salary] ), Salaries[Gender] = "M" ) 
            ) 
        )
    )
RETURN
    IF ( 
        HASONEVALUE ( Salaries[Gender] ),
        FORMAT ( MedianSalary, "#" ),
        M_FRation
    )&lt;/LI-CODE&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 04:01:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-DAX-formula-average-of-divided-medians-caluclated/m-p/2494852#M68792</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-05-05T04:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with DAX formula (average of divided medians caluclated by conditions)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-DAX-formula-average-of-divided-medians-caluclated/m-p/2495187#M68803</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&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;/P&gt;&lt;P&gt;The solution is great. Works perfect!&lt;/P&gt;&lt;P&gt;Just one question. Is the a way to adjust the formula to check if there are at least 2 occurances of each gender for respective position before calculating divide?&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 07:05:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-DAX-formula-average-of-divided-medians-caluclated/m-p/2495187#M68803</guid>
      <dc:creator>n00ne</dc:creator>
      <dc:date>2022-05-05T07:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with DAX formula (average of divided medians caluclated by conditions)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-DAX-formula-average-of-divided-medians-caluclated/m-p/2495237#M68805</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="385090" data-lia-user-login="n00ne" class="lia-mention lia-mention-user"&gt;n00ne&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Can you clarify further perhaps using an example?&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 07:18:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-DAX-formula-average-of-divided-medians-caluclated/m-p/2495237#M68805</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-05-05T07:18:40Z</dc:date>
    </item>
  </channel>
</rss>

