Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello Everybody
I want to calculate a column with a condition. I want to make a SUM of several columns with one condition like this:
IF [Estado] = "Pagado" THEN SUM ([Pago]+[Pago2]+[Pago3]+[Pago4]+[Pago5])
IF [Estado] = "En Proceso" THEN DON'T SUM.
I'm new on this thanks for your comments.
Solved! Go to Solution.
I believe you could do something like.
if([Estado ="Pagado", [Pago] + [Pago2] + [Pago3] + [Pago4] + [Pago5])
Hi @FabAug,
I think switch function will suitable for your requirement.
Sample:
Result = SWITCH ( [Estado], "En Proceso", "", "Pago", [Pago], "Pago2", [Pago2], "Pagado", [Pago] + [Pago2] + [Pago3] + [Pago4] + [Pago5] )
Regards,
Xiaoxin Sheng
Hi @FabAug,
I think switch function will suitable for your requirement.
Sample:
Result = SWITCH ( [Estado], "En Proceso", "", "Pago", [Pago], "Pago2", [Pago2], "Pagado", [Pago] + [Pago2] + [Pago3] + [Pago4] + [Pago5] )
Regards,
Xiaoxin Sheng
I believe you could do something like.
if([Estado ="Pagado", [Pago] + [Pago2] + [Pago3] + [Pago4] + [Pago5])
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
106 | |
94 | |
77 | |
65 | |
53 |
User | Count |
---|---|
145 | |
105 | |
104 | |
90 | |
63 |