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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Syndicate_Admin
Administrator
Administrator

Modificar medida en columna

Hola a todos

Necesito eliminar el valor de la columna del eje X "Tipo" y mantenerlo solo para el Total.

Por debajo del estado actual:

o59393_0-1693851140789.png

En cambio, me gustaría tenerlo así (columna azul claro solo en totales):

o59393_1-1693851185654.png

La medida es la siguiente:

OU Target = 
Var Target =
CALCULATE(
    [OU Savings Target],
        ALL('Type with total'))
    Return
    SWITCH(
        SELECTEDVALUE('Type with total'[Type]),
        "Total",Target,
        [OU Savings Target]
)

Donde Tipo con total es:

o59393_2-1693851320534.png

¿Cómo puedo mantener la barra azul claro solo en el eje x total?

Gracias.

1 ACCEPTED SOLUTION
Syndicate_Admin
Administrator
Administrator

Pude resolverlo:

Acaba de eliminar el [Objetivo de ahorro de la unidad organizativa] del código dax. La última es:

OU Target = 
Var Target =
CALCULATE(
    [OU Savings Target],
        ALL('Type with total'))
    Return
    SWITCH(
        SELECTEDVALUE('Type with total'[Type]),
        "Total",Target
)

View solution in original post

2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

Pude resolverlo:

Acaba de eliminar el [Objetivo de ahorro de la unidad organizativa] del código dax. La última es:

OU Target = 
Var Target =
CALCULATE(
    [OU Savings Target],
        ALL('Type with total'))
    Return
    SWITCH(
        SELECTEDVALUE('Type with total'[Type]),
        "Total",Target
)
Syndicate_Admin
Administrator
Administrator

He modificado el dax

OU Target = 
Var Target =
CALCULATE(
    [OU Savings Target],
        ALL('Type with total'),'Type with total'[Type]="Total")
    Return
    SWITCH(
        SELECTEDVALUE('Type with total'[Type]),
        "Total",Target,
        [OU Savings Target]
)

Y la barra azul claro desapareció del total y se quedó en el resto, que es lo contrario de la solución que estoy buscando:

o59393_0-1693852161577.png

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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

Top Solution Authors