<?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 Calculate the median, but sum in advance. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-median-but-sum-in-advance/m-p/2895357#M94090</link>
    <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the above bleu table. And I want to generate a (yellow) table that shows the median of "Value" by color.&lt;BR /&gt;But before calculating the median, "Value" must first be summed to "Color" and "Animal", like the green table above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To make the example table,&amp;nbsp;below the code of the advanced editor:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;let&lt;BR /&gt;Bron = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("hdBND4IgGAfw78LZg/iax1LXOtW0m3ONJSKLQWP5/XtoTWBNu/AAvz+vXYdO1S0MMQpQQwdoS/KCNkF98KVoneKFKsV8StYpXejKGdVQscVsC3MYHgSdodSCPicizYUKG9jZQKnVXQ1cUD9R2MSRazKO1LscDq23kjz81dh801kTycz8/nN6ZDX6VWfneFMTV1tK2CwE9FKbSP8mMjdx4ebb4T0L5y43E5cKaoz6/g0=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [ID = _t, Color = _t, Animal = _t, Value = _t]),&lt;BR /&gt;#"Type gewijzigd" = Table.TransformColumnTypes(Bron,{{"ID", type text}, {"Color", type text}, {"Animal", type text}, {"Value", Int64.Type}})&lt;BR /&gt;in&lt;BR /&gt;#"Type gewijzigd"&lt;/P&gt;</description>
    <pubDate>Wed, 09 Nov 2022 12:50:02 GMT</pubDate>
    <dc:creator>brief001</dc:creator>
    <dc:date>2022-11-09T12:50:02Z</dc:date>
    <item>
      <title>Calculate the median, but sum in advance.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-median-but-sum-in-advance/m-p/2895357#M94090</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the above bleu table. And I want to generate a (yellow) table that shows the median of "Value" by color.&lt;BR /&gt;But before calculating the median, "Value" must first be summed to "Color" and "Animal", like the green table above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To make the example table,&amp;nbsp;below the code of the advanced editor:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;let&lt;BR /&gt;Bron = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("hdBND4IgGAfw78LZg/iax1LXOtW0m3ONJSKLQWP5/XtoTWBNu/AAvz+vXYdO1S0MMQpQQwdoS/KCNkF98KVoneKFKsV8StYpXejKGdVQscVsC3MYHgSdodSCPicizYUKG9jZQKnVXQ1cUD9R2MSRazKO1LscDq23kjz81dh801kTycz8/nN6ZDX6VWfneFMTV1tK2CwE9FKbSP8mMjdx4ebb4T0L5y43E5cKaoz6/g0=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [ID = _t, Color = _t, Animal = _t, Value = _t]),&lt;BR /&gt;#"Type gewijzigd" = Table.TransformColumnTypes(Bron,{{"ID", type text}, {"Color", type text}, {"Animal", type text}, {"Value", Int64.Type}})&lt;BR /&gt;in&lt;BR /&gt;#"Type gewijzigd"&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 12:50:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-median-but-sum-in-advance/m-p/2895357#M94090</guid>
      <dc:creator>brief001</dc:creator>
      <dc:date>2022-11-09T12:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the median, but sum in advance.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-median-but-sum-in-advance/m-p/2895406#M94092</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Please try the below DAX formula to create a new table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 13:22:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-median-but-sum-in-advance/m-p/2895406#M94092</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-11-09T13:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the median, but sum in advance.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-median-but-sum-in-advance/m-p/2895466#M94098</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291628" data-lia-user-login="Jihwan_Kim" class="lia-mention lia-mention-user"&gt;Jihwan_Kim&lt;/a&gt;&amp;nbsp;thanks for your super quick response. I copied your DAX example, and it works exactly as hoped&lt;/P&gt;&lt;P&gt;Thank you so much for thinking along and providing the right DAX formula!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 13:49:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-median-but-sum-in-advance/m-p/2895466#M94098</guid>
      <dc:creator>brief001</dc:creator>
      <dc:date>2022-11-09T13:49:06Z</dc:date>
    </item>
  </channel>
</rss>

