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
HPauwelyn
Frequent Visitor

Cambiar los resultados de la medida en función de una segmentación de datos con Power BI

Estoy elaborando un informe con Power BI. Los datos que mostraré son los de un volumen de negocios. Dentro de la fuente de datos tengo estos datos.

MesCantidadFiltro
117opción A
115Opción B
116

Opción C

212

Opción A

214

Opción B

213

Opción C

317

Opción A

318

Opción B

316

Opción C

Tengo esto en el informe:

qlGE3

Para la columna de filtro voy a crear una segmentación de datos y cuando no hay nada seleccionado la suma de todas las opciones deben mostrarse en el gráfico, cuando se selecciona en o múltiples sólo las selecciones deben mostrarse en el gráfico. Para crear el gráfico he creado esta medida:

Commulative ammount ? 
CALCULATE(
    SUM('Turnover'[Ammount]),
    FILTER(
        ALL('Turnover'), 
        'Turnover'[Month] <- MAX('Turnover'[Month])
    )

En esta situación, cuando selecciono una opción de los filtros, el gráfico no cambia los datos. ¿Cómo podría hacer esto?

5 REPLIES 5
amitchandak
Super User
Super User

@HPauwelyn , usar allselected

Commulative ammount ? 
CALCULATE(
    SUM('Turnover'[Ammount]),
    FILTER(
        ALLSELECTED('Turnover'), 
        'Turnover'[Month] <' MAX('Turnover'[Month])
    )
mahoneypat
Employee
Employee

Pruebe ALLSELECTED() en lugar de ALL().

Si esto funciona para usted, márquelo como la solución. Los elogios también son apreciados. Por favor, avísame si no.

saludos

palmadita





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


ThoSch-Ger
Helper I
Helper I

¿Obtiene las opciones de la tabla 'Turnover'?

En ese caso, intente:

Commulative ammount ?
    CALCULATE(SUM('Turnover'[Ammount]),
    FILTER(
        ALLEXCEPT('Turnover', 'Turnover'[Filter] ), 
        'Turnover'[Month] <- MAX('Turnover'[Month])
    )
FarhanAhmed
Community Champion
Community Champion

Commulative ammount = 
CALCULATE(
    SUM('Turnover'[Ammount]),
    FILTER(
        'Turnover', 
        'Turnover'[Month] <= MAX('Turnover'[Month])
    )
)






Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!

Proud to be a Super User!




Anonymous
Not applicable

Creo que usted debe utilizar ALLSELECTED en lugar de TODO para los resultados deseados:

Commulative ammount = 
CALCULATE(
    SUM('Turnover'[Ammount]),
    FILTER(
        ALLSELECTED('Turnover'), 
        'Turnover'[Month] <= MAX('Turnover'[Month])
    )
) 

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.