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
gsulaimon
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

KPI's 

 

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 @Anonymous @HotChilli @Nathaniel_C 

4 REPLIES 4
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.
Nathaniel

Typo.PNG

 

 

 





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 

 

@v-yuta-msft

 

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

EER.JPG

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.