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

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.

Reply
GAURAV7781
Helper III
Helper III

Cómo mostrar segmentaciones

Sólo cuando estoy seleccionando WS no funciona

GAURAV7781_0-1600417586005.png

1 ACCEPTED SOLUTION
v-rzhou-msft
Community Support
Community Support

Hola @GAURAV7781

Construyo una tabla de muestra y probé su medida, encontré cuando selecciona WS / SW su medida _Selected dará como resultado "SW".

Por lo tanto, en su retorno cuando la salida "WS", el resultado está en blanco.

1.png

Actualizo su medida:

Area. = 
VAR _Selected =
    ALLSELECTED ( 'Exported Data-RGA'[Area] )
VAR _CON =
    CONCATENATEX ( _Selected, 'Exported Data-RGA'[Area] )
VAR _Output =
    IF ( _CON = "SW", "WS", _CON )
RETURN
    IF (
        ISFILTERED ( 'Exported Data-RGA'[Area] ),
        SWITCH (
            _Output,
            "W", "Warehouse",
            "S", "Sales",
            "MNRSTW", "Total Returns",
            "WS", "IMS Caused"
        ),
        BLANK ()
    )

El resultado es el siguiente.

Seleccione "WS"

2.png

Puede descargar el archivo pbix desde este enlace: Cómo mostrar segmentaciones

Saludos

Rico Zhou

Si este post ayuda,entonces considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.

View solution in original post

2 REPLIES 2
v-rzhou-msft
Community Support
Community Support

Hola @GAURAV7781

Construyo una tabla de muestra y probé su medida, encontré cuando selecciona WS / SW su medida _Selected dará como resultado "SW".

Por lo tanto, en su retorno cuando la salida "WS", el resultado está en blanco.

1.png

Actualizo su medida:

Area. = 
VAR _Selected =
    ALLSELECTED ( 'Exported Data-RGA'[Area] )
VAR _CON =
    CONCATENATEX ( _Selected, 'Exported Data-RGA'[Area] )
VAR _Output =
    IF ( _CON = "SW", "WS", _CON )
RETURN
    IF (
        ISFILTERED ( 'Exported Data-RGA'[Area] ),
        SWITCH (
            _Output,
            "W", "Warehouse",
            "S", "Sales",
            "MNRSTW", "Total Returns",
            "WS", "IMS Caused"
        ),
        BLANK ()
    )

El resultado es el siguiente.

Seleccione "WS"

2.png

Puede descargar el archivo pbix desde este enlace: Cómo mostrar segmentaciones

Saludos

Rico Zhou

Si este post ayuda,entonces considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.

amitchandak
Super User
Super User

@GAURAV7781 ,

No probado. Inténtalo así

CONCATENATEX(ALLSELECTED('Exported Data-RGA'[Area]),Switch('Exported Data-RGA'[Area] ,"W","Warehouse","S","Sales","MNRSTW","Total Returns","WS","IMS Caused") )

CONCATENATEX(('Exported Data-RGA'[Area]),Switch('Exported Data-RGA'[Area] ,"W","Warehouse","S","Sales","MNRSTW","Total Returns","WS","IMS Caused") )

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Kudoed Authors