Reply
marcocapo
Frequent Visitor
Partially syndicated - Outbound

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

Syndicated - Outbound

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

Syndicated - Outbound

Read about the usage of REMOVEFILTERS()

avatar user

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

Check out the March 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)