Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
cottrera
Post Prodigy
Post Prodigy

DAX Múltiple If

Hola

Tengo una tabla visual que muestra las siguientes columnas 'week start' y 'w number' (Tenga en cuenta que el número w es una medida)

Necesito un IF múltiple para mostrar texto basado en los resultados de 'número w' en mi tabla visual.

He probado este DAX

Resultado W-Result á IF(AND([W number]>-0,[W number]<-1),"X1"&IF(AND([W number]>1,[W number]<-2),"X2"&IF(AND([W number]>2,[W number]<-20),"X3")))
Estos son los resultados que no son los que esperaba (A continuación se presentan mis resultados esperados)
Inicio de la semanaNúmero WW-Result
21/09/20201.4
28/09/20201.2
05/10/20201.6
12/10/20201.2
26/10/20201.6
02/11/20201.1
09/11/20201.8
16/11/20201.7
19/10/20200.8X1
Esto es lo que espero
Inicio de la semanaNúmero WW-Result
21/09/20201.4X2
28/09/20201.2X2
05/10/20201.6X2
12/10/20203.1X3
26/10/20201.6X2
02/11/20201.1X2
09/11/20201.8X2
16/11/20201.7X2
19/10/20200.8X1

Gracias

Richard

1 ACCEPTED SOLUTION
manikumar34
Solution Sage
Solution Sage

@cottrera ,

Usted está utilizando AND que resukts whn el satatement es cierto

Prueba lo de abajo.

Resultado W-Result á IF(AND([W number]>-0,[W number]<-1),"X1",IF(AND([W number]>1,[W number]<-2),"X2",IF(AND([W number]>2,[W number]<-20),"X3")))

Rehards,

Manikumar





If this helps, Appreciate your KUDOS!
Did I answer your question? Mark my post as a solution!


Proud to be a Super User!




View solution in original post

3 REPLIES 3
cottrera
Post Prodigy
Post Prodigy

Gracias

@cottrera ,

Impresionante, tienes la respuesta.

Deja un "me gusta" si te resulta útil.

saludos

Manikumar





If this helps, Appreciate your KUDOS!
Did I answer your question? Mark my post as a solution!


Proud to be a Super User!




manikumar34
Solution Sage
Solution Sage

@cottrera ,

Usted está utilizando AND que resukts whn el satatement es cierto

Prueba lo de abajo.

Resultado W-Result á IF(AND([W number]>-0,[W number]<-1),"X1",IF(AND([W number]>1,[W number]<-2),"X2",IF(AND([W number]>2,[W number]<-20),"X3")))

Rehards,

Manikumar





If this helps, Appreciate your KUDOS!
Did I answer your question? Mark my post as a solution!


Proud to be a Super User!




Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors