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

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
Mónica
Regular Visitor

Utilización de una tabla virtual, como medida escalar

Buen día solicito su ayuda ya que tengo la siguiente tabla virtual, debo convertirla en medida, y que cuando lo grafique el valor del cuartil por cada fila en una matriz quede conforme al resultado individual, o cómo se puede graficar la tabla virtual?

 

prueba = var tabla =

    ADDCOLUMNS(
        ADDCOLUMNS(
            ADDCOLUMNS(
                FILTER(
                    SUMMARIZE('01 Matriz', '01 Matriz'[Login], "NPS", [% NPS]),
                    [NPS] <> BLANK()
                ),
                "Rank", RANKX('01 Matriz', [NPS], , DESC),
                "llave", [NPS] + 1 & '01 Matriz'[Login]
            ),
            "SubRank", RANKX(
                FILTER(
                    SUMMARIZE('01 Matriz', '01 Matriz'[Login], "NPS", [% NPS], "llave", 1 + [% NPS] & '01 Matriz'[Login]),
                    [NPS] <> BLANK()
                ),
                [llave],
                ,
                DESC
            )
        ),
        "PercentileRank",
        VAR _total =
            COUNTROWS(
                FILTER(
                    SUMMARIZE('01 Matriz', '01 Matriz'[Login], "NPS", [% NPS]),
                    [NPS] <> BLANK()
                )
            )
        RETURN
            DIVIDE(
                _total + 1 - (
                    RANKX(
                        FILTER(
                            SUMMARIZE('01 Matriz', '01 Matriz'[Login], "NPS", [% NPS], "llave", 1 + [% NPS] & '01 Matriz'[Login]),
                            [NPS] <> BLANK()
                        ),
                        [llave],
                        ,
                        DESC
                    )
                ),
                _total + 1
            )
    )
     "Cuartil",
    SWITCH(
        TRUE(),
        [PercentileRank] <= 0.25, 1,
        [PercentileRank] <= 0.50, 2,
        [PercentileRank] <= 0.75, 3,
        [PercentileRank] > 0.75, 4
    )


var Q =
AVERAGEX(tabla,[Cuartil])

return
Q
 
 
 
Muchas gracias
3 REPLIES 3
Anonymous
Not applicable

Hi @Mónica ,

Thank you for using Fabric Community.

Apologies for the delay in reply from our side. Did you got a resolution for this?
In case if you have any resolution please do share that same with the community as it can be helpful to others .
Otherwise, will respond back with the more details and we will try to help.


Anonymous
Not applicable

Hello @Mónica ,

We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet. In case if you have any resolution please do share that same with the community as it can be helpful to others. Otherwise, will respond back with the more details and we will try to help .

Anonymous
Not applicable

Hi @Mónica ,

We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet. In case if you have any resolution please do share that same with the community as it can be helpful to others. If you have any question relating to the current thread, please do let us know and we will try out best to help you. In case if you have any other question on a different issue, we request you to open a new thread .

Helpful resources

Announcements
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Free Fabric Certifications

Free Fabric Certifications

Get Fabric certified for free! Don't miss your chance.

January Fabric Update Carousel

Fabric Monthly Update - January 2026

Check out the January 2026 Fabric update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.