Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Measure for different aggregations of absolute values

Hi,

 

My dims are Datetime, Zone, Macrozone (aggregation of zones) and type, as shown below:

ace4_1-1680020740196.png

 

 

I need to analyze different aggregations of absolute values:

- per macrozone (absolute of the value aggregated per hour and macrozone)

- per zone (absolute of the value aggregated per hour and zone)

- per zone and type (absolute of the value detailed per type and zone)

 

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.

 

ace4_0-1680020723600.png

 

I'm creating summarized table for each different aggregation with a calculated column of absolute value (or distinguishing negative and positive).

 

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).

Similarly Abs(sumx(value)) would put all the hours together, while I need to consider the absolute value of each hour.

 

I'm attaching a sample pbix. Sample pbix 
thanks a lot!

0 REPLIES 0

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.