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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Visualización condicional para el total en matriz

Tengo una matriz con los siguientes campos:

Agrego un total para level2
Capture.PNG
¿Cómo puedo ocultar level2 cuando está en blanco y necesito mantener el total para level1?
Por ejemplo la siguiente imagen, Para la línea "Moto" necesito ocultar la línea cuando el nivel 2 es nulo necesito mantener para mostrar el total?
Resultados esperados:
Dim5RapportDim6RapportAN
AutomáticoTotal4
Haga clic y vaya2
Refeerence2
MotoTotal2
SanteTotal2
3 REPLIES 3
V-lianl-msft
Community Support
Community Support

Hola @Migration ,

Cree una medida como condición lógica para [AN].

Measure 2 =
VAR test1 =
    IF ( ISINSCOPE ( Dim_Produit[Dim6Rapport] ), TRUE () )
RETURN
    IF (
        ISINSCOPE ( Dim_Produit[Dim5Rapport] )
            && MAX ( Dim_Produit[Dim6Rapport] ) <> "null",
        TRUE (),
        NOT ( test1 )
    )

test_Conditional display for total in matrix.PNG

Muestra .pbix

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

amitchandak
Super User
Super User
Greg_Deckler
Super User
Super User

Esto parece un problema de totales de medida. Muy común. Vea mi post al respecto aquí: https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376

Además, esta medida rápida, medida totales, la palabra final debe obtener lo que necesita:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907

Además, MM3TR&R: https://community.powerbi.com/t5/Quick-Measures-Gallery/Matrix-Measure-Total-Triple-Threat-Rock-amp-...


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.