Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Moving Benchmark

Hi All,
please I have hit a little snag .. I have a formula that was supposed to calculate the water consumption weekly
but the benchmark I want to be flexible depending on the number of persons available in that week. 
 columns :
Average headcount
week number



one person is assumed to consume a minimum of 1.5 liters weekly


NW Benchmark = Calculate(sumx(FASENV,FASENV[headcount]*1.5),filter(FASENV,FASENV[Location] in{("Average Head Count - Staff House I"),("Average Head Count - Staff House II"),("Average Head Count - Staff House III"),("Average Head Count - Staff House IV"),("Average Head Count - Office")}))


Kindly assist @avanderschilden @spartachek @HotChilli @Nathaniel_C 

Super User
Super User

Hi @gsulaimon ,

One thing I notice off the top is a typo. Is this your actual code?

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

still didnt not work.


 yes, this is my code. 


Even with the brackets, it worked. but it not populating the benchmark to be dynamic 

has the average headcount for various weeks and locations differ 




kindly assist 




Kindly assist 

please note that when I used conditional statement to generate the headcounts I had some blanks as result of the other line items which indicated to be nulls but when I tried using it  is still blank even for the ones that had values in them on the table


Helpful resources


2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

Power BI Summit Carousel 2

Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

BizApps LATAM 2023

Business Application LATAM Summit 2023

Join the biggest FREE Business Applications Event in LATAM this February.

Power Platform Bootcamp

Global Power Platform Bootcamp

In this bootcamp we will deep-dive into Microsoft’s Power Platform stack with hands-on sessions and labs, delivered to you by experts and community leaders.

Top Solution Authors
Top Kudoed Authors