Average if - expression help please

I have a table and I need to build a Virtual column with averages.  I need an average of column [DSO] based on two things:

Date [year] = "Current year" ( I already have a virtual column "year")

Branch [branch] (I have 7 different branches PLUS my "Total" = so It will calculate 8 Averaged DSO)

TABLE:

[Key]    [Date]   [Branch]    [DSO]

 

SNIPPET OF DATA/TABLE:

 

Tiger1_1-1730474557119.png

 

Solved Solved
0 6 165
1 ACCEPTED SOLUTION

Steve
Platinum 5
Platinum 5
6 REPLIES 6

Steve
Platinum 5
Platinum 5

Thanks Steve, 

I am still not getting this (see below):

Tiger1_0-1730478248799.png

 

This happens to me when I'm using a slice that doesn't include the column. Make sure that Historical DSO Download Table includes the Branch column.

It does, but it is a Ref.  Is that the problem?

Tiger1_0-1730483276552.png

 

What about the table that includes the Baytown column?

Steve_0-1730485259707.png

 

Got it working.  Thanks AGAIN Steve!

Top Labels in this Space