cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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

Accepted Solutions
Highlighted

Re: What is wrong with my measure?

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
Highlighted

Re: What is wrong with my measure?

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

View solution in original post

Highlighted
Helper IV
Helper IV

Re: What is wrong with my measure?

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

Highlighted

Re: What is wrong with my measure?

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

Highlighted
Helper IV
Helper IV

Re: What is wrong with my measure?

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

Helpful resources

Announcements
Super Users of the Quarter - Q2 2020

Super Users of the Quarter - Q2 2020

Who are our Super User Superstars? Who made it to the top of the leaderboards? Get the answers!

June 2020 Community Highlights

June 2020 Community Highlights

Featured community members, changes to the Community, and more! Read up on recent Power BI community news.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Power Platform 2020 release wave 2 plan

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Kudoed Authors