Forum Discussion
Mark_Timson
Helper I
7 years agoHow to Sum based on an if statement
Hi all, I was wondering if it was possible to do something similar to the below in power bi IF Table.Col = "Y" THEN SUM(Table1.Col) ELSE IF Table.Col = "N" THEN SUM(Table2.Col) ELSE 0. I ...
Gordonlilj
Solution Sage
7 years agoHi,
You could try:
SWITCH(TRUE(),Table.Col="Y",SUM(Table1.Col),Table.Col ="N",SUM(Table2.Col),0)
- Mark_Timson7 years ago
Helper I
This didnt work as the column that is being filtered is not related I think.