Forum Discussion
MAX VALUE
- Anonymous3 years ago
Hi Anonymous ,
Please kindly try this custom column.
= if [C]<> null and [B]="F" then List.Max(Table.Column(#"Changed Type","C"))+[D]/2 else [D]/2List.Max(Table.Column(#"Changed Type","C")) returns the max value of column [C].
I have no idea about the "Today", if it's a column, just add them in to the formula.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Still confused .
You keep writing about dates, but I only see whole numbers in your example.
ok do not consider " today "if was
For each value on column A, IF(B="F")&(C isnot "BLANK") , MAX(C)+D/2, 0
what could be the formula?
- ronrsnfld4 years agoSuper User
The formula for a "Custom Column" would be:
if [C]<>"BLANK" and [B]="F" then List.Max(List.Transform(#"Previous Step"[C], each try Number.From(_) otherwise null)) + [D]/2 else 0#"Previous Step" refers to the name in the Applied Steps window immediately preceding the custom column step you are working on.
The "List.Transform" is done because List.Max does not automatically ignore text entries.