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
Beyeservices
Regular Visitor

División dentro de las filas Matrix

Hola, chicos

Quiero dividir una fila Matrix con la línea por encima de ella en Power BI y me gustaría encontrar una solución a ella. por favor, mire la siguiente tabla dinámica en el siguiente enlace. No conseguimos encontrar tu ubicación exacta.

https://docs.google.com/spreadsheets/d/1nD0H12eUBbtV5YaBrMiswKLpGlhoOYQ5eM4Et_yOx8A/edit?usp=sharing

Necesito la segunda tabla para responder dinámicamente a la primera tabla. En las columnas de archivo son 'país', pero si lo recolo con Región debe cambiar dinámicamente. Se puede hacer fácilmente en Excel, pero estoy luchando para mostrar eso en Power BI.

Cualquier ayuda es apreciada

2 REPLIES 2
v-eachen-msft
Community Support
Community Support

Hola @Beyeservices ,

Puede hacer referencia a la siguiente medida.

Measure =
VAR a =
    CALCULATE (
        [Your value expression],
        FILTER (
            ALLSELECTED ( 'Table' ),
            'Table'[Stage]
                = MAX ( 'Table'[Stage] ) - 1
                && 'Table'[Country] = MAX ( 'Table'[Country] )
        )
    )
RETURN
    IF ( a = BLANK (), BLANK (), [Your value expression] / a )

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.
amitchandak
Super User
Super User

@Beyeservices , no tenemos ningún método dos restar de la última fila

pero podemos hacer así

Esta etapa CALCULATE(sum('order'[Qty]),filter(ALL('Stage'),'Stage'[Stage]'max('Stage'[Stage])))
Last Stage CALCULATE(sum('order'[Qty]),filter(ALL('Stage'),'Date'[Stage]'max('Stage'[Stage])-1))

diff á [Esta etapa] -[última etapa]

si no son numéricos podemos tener rango en ellos que puede trabajar

Esta etapa CALCULATE(sum('order'[Qty]), FILTER(ALL('Stage'),'Stage'[StageRank]'max('Stage'[StageRank])))
Last Stage CALCULATE(sum('order'[Qty]), FILTER(ALL('Stage'),'Stage'[StageRank]'max('Stage'[StageRank])-1))

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.