Need to find total value from ref table using SUM()

Hi ,

I am trying to calculate the total value of the ref table by using the below formula

SUM(SELECT(Bills[Line value],AND([Customer Name]=[ID],[Status]=“Credit”)))

I am using the above formula in the parent table in virtual column but I am not getting the total value .

3X_7_9_79da433a77462a1169357f889b22169cacf3a849.png

I need to total value ,where the status is credit ,Please help me with the expression

Solved Solved
0 7 169
1 ACCEPTED SOLUTION

SUM(Select([Related whatever][Line value],[Status]=“Credit”))

View solution in original post

7 REPLIES 7

SUM(SELECT(Bills[Line value],AND([Customer Name]=[_thisrow].[ID],[Status]=“Credit”)))

Probably you are missing [_thisrow]. operator.

Hi ,

I tried with the above expression but I could not able to get the total ,it remains 0

Since that’s an inline view, a virtual column called something like [Related BLABLA]
You can do this by:

SUM(
  [Related whatever][Line value]
)

Try that one , not my one.

Hi ,

I tired ,its sum all the row values ,I need to add the value ,where the status column is equal to Credit

SUM(Select([Related whatever][Line value],[Status]=“Credit”))

Thanks @tsuji_koichi is working fine

Top Labels in this Space