<?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 Measure for different aggregations of absolute values in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-different-aggregations-of-absolute-values/m-p/3158017#M156779</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My dims are Datetime, Zone, Macrozone (aggregation of zones) and type, as shown below:&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;I need to analyze different aggregations of absolute values:&lt;/P&gt;&lt;P&gt;- per macrozone (absolute of the value aggregated per hour and macrozone)&lt;/P&gt;&lt;P&gt;- per zone (absolute of the value aggregated per hour and zone)&lt;/P&gt;&lt;P&gt;- per zone and type (absolute of the value detailed per type and zone)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The fact is that I need to repeat the same calculation on a similar column of corrected values, therefore my columns are increasing too much.&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;I'm creating summarized table for each different aggregation with a calculated column of absolute value (or distinguishing negative and positive).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to build a single measure that allows me to display the different value according to the context given by the visuals? Sumx(abs(value)) would just work for the maximum detail (Macrozone/zone/type): as soon as I drill up (let's say simple zonal view) it would give a wrong result, since it would give the sum of the absolute values of the different types (instead of making the absolute value of the sum of them).&lt;/P&gt;&lt;P&gt;Similarly Abs(sumx(value)) would put all the hours together, while I need to consider the absolute value of each hour.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm attaching a sample pbix.&amp;nbsp;&lt;A href="https://drive.google.com/file/d/18IhSgfVYagK-noORGyQzczfb_TpZtDXd/view?usp=sharing" target="_blank" rel="noopener"&gt;Sample pbix&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;thanks a lot!&lt;/P&gt;</description>
    <pubDate>Tue, 28 Mar 2023 16:32:11 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-03-28T16:32:11Z</dc:date>
    <item>
      <title>Measure for different aggregations of absolute values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-different-aggregations-of-absolute-values/m-p/3158017#M156779</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My dims are Datetime, Zone, Macrozone (aggregation of zones) and type, as shown below:&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;I need to analyze different aggregations of absolute values:&lt;/P&gt;&lt;P&gt;- per macrozone (absolute of the value aggregated per hour and macrozone)&lt;/P&gt;&lt;P&gt;- per zone (absolute of the value aggregated per hour and zone)&lt;/P&gt;&lt;P&gt;- per zone and type (absolute of the value detailed per type and zone)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The fact is that I need to repeat the same calculation on a similar column of corrected values, therefore my columns are increasing too much.&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;I'm creating summarized table for each different aggregation with a calculated column of absolute value (or distinguishing negative and positive).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to build a single measure that allows me to display the different value according to the context given by the visuals? Sumx(abs(value)) would just work for the maximum detail (Macrozone/zone/type): as soon as I drill up (let's say simple zonal view) it would give a wrong result, since it would give the sum of the absolute values of the different types (instead of making the absolute value of the sum of them).&lt;/P&gt;&lt;P&gt;Similarly Abs(sumx(value)) would put all the hours together, while I need to consider the absolute value of each hour.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm attaching a sample pbix.&amp;nbsp;&lt;A href="https://drive.google.com/file/d/18IhSgfVYagK-noORGyQzczfb_TpZtDXd/view?usp=sharing" target="_blank" rel="noopener"&gt;Sample pbix&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;thanks a lot!&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 16:32:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-different-aggregations-of-absolute-values/m-p/3158017#M156779</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-28T16:32:11Z</dc:date>
    </item>
  </channel>
</rss>

