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
marcocapo
Frequent Visitor

How to create a measure that consider a lower level of granularity

Hi All,

 

I'm trying to create a report for calculating a KPI. The data behind the report are downloaded in excel at a determined level of granularity, so I have Region -> Site -> Material -> Customer. I download this granularity because I need it in the same report too. 

 

Is there a possibility to create a measure that not consider the customer? 

 

For Example:

 

I have data like the following ones.

So, the granularity of the quantity "Actual Qty Month" and of the "Adj. Demand Manager Qty Lag" is given by the combination of Location Description, Material, Customer and Time Period.

The error is calculated as "ABS(Adj. Demand Manager Qty Lag - Actual Qty Month)" and is calculated for each row. 

 

marcocapo_0-1648043298224.png

 

I'd need to calculate the error with the same formula --> ABS(Adj. Demand Manager Qty Lag - Actual Qty Month), but just considering Location Description, Material and Time Period. So, aggregating the quantities just excluding the Customer for this measure.

 

marcocapo_0-1648048281672.png

 

Is it possible to create a measure like this? 

Hope to been clear. 

 

Thanks,

Marco

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

I cannot understand your expected result (second table).  How did you get the combinations of 2C, 3A?  Also, why is 2C being repeated?  Please explain.  


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
lbendlin
Super User
Super User

Read about the usage of REMOVEFILTERS()

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

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.