The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hola;
Necesito segmentar datos en 4 o 5 categorías diferentes (<10, >10, >15, >30), doy un ejemplo sencillo:
Persona Edad SEGMENTACION
A 5 <10
B 29 >15
C 13 >10
D 55 >30
E 14 >10
Actualmente uso:
Solved! Go to Solution.
You could use nested IF statements, but I would use a SWITCH(TRUE()...) statement.
Hi @Anonymous
Try below formula:
Column = IF ( Table3[Edad] < 10, "<10", IF ( Table3[Edad] > 10 && Table3[Edad] < 15, ">10", IF ( Table3[Edad] > 15 && Table3[Edad] < 30, ">15", ">30" ) ) )
or
Column 2 = SWITCH ( TRUE (), Table3[Edad] < 10, "<10", Table3[Edad] > 10 && Table3[Edad] < 15, ">10", Table3[Edad] > 15 && Table3[Edad] < 30, ">15", ">30" )
Regards,
Cherie
You could use nested IF statements, but I would use a SWITCH(TRUE()...) statement.