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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

Check out the August 2024 Power BI update to learn about new features.

August Carousel

Fabric Community Update - August 2024

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