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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Christann
Helper IV
Helper IV

What is wrong with my measure?

Here is my Measure:

 

Adjusted Water Level =
VAR WaterLevel = SUMX(Chickens,DIVIDE(Chickens[Water Level],2,0))
VAR Adjuster = CALCULATE(AVERAGE(Chickens[# of Eggs]),ALL(Chickens[Dates]))
Return
    WaterLevel + Adjuster

 

And here is what I get when I filter the visual:

adj.JPG

My goal was to have a measure which adjusted the feed/water level by adding the average number of eggs to it in order to see if they rise and fall together.

Any idea why calculate() is effecting my visual?

 

1 ACCEPTED SOLUTION

I think that the problem is in the all(Chickens[Dates]) in calculate filter, take it off

View solution in original post

4 REPLIES 4

I think that the problem is in the all(Chickens[Dates]) in calculate filter, take it off

The problem is that I do want the average of all the values. Am I confused, and it will do that anyway?

The second VAR will always give you the same value, is that you want? 

I think that your first idea actually does work! Thank you so much!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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