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
PPDiaz1978
Resolver I
Resolver I

Medida incremental a partir de otra medida

Hola, tengo un problema con una medida acumulativa que no me acumula según requerimiento. He leído el foro y no hay nada similar. Mi problema es que necesito que sesiones agg, sea incremental

 

taa =
VAR vTableID =
    SUMMARIZE( Sesiones, Sesiones[LApp], Sesiones[timestamp.1], Sesiones[session_Id],
                "Rank", RANKX(ALL(Sesiones), Sesiones[N Sesiones])
    )
VAR vTableWithMeasure =
    ADDCOLUMNS ( vTableID, "Sesiones Agg", Sesiones[N Sesiones] )
    return
    vTableWithMeasure
 
 
Añado unos datos que tengo de ejemplo
PPDiaz1978_0-1661497802068.png

 

3 REPLIES 3
PPDiaz1978
Resolver I
Resolver I

En realidad busco ésta medida, pero necesito arreglar el paso previo con ese campo incremental para que funcione bien el percentil

 

 

Valor Percentil =
        VAR vTableID =
            SUMMARIZE( Sesiones, Sesiones[LApp], Sesiones[timestamp.1], Sesiones[session_Id],
                        "Rank", RANKX(ALL(Sesiones), Sesiones[N Sesiones])
            )
        VAR vTableWithMeasure =
            ADDCOLUMNS ( vTableID, "Sesiones Agg", Sesiones[N Sesiones] )
VAR vResult =
    PERCENTILEX.INC (
        vTableWithMeasure,
        [Sesiones AGG],
        [Valor Percentiles]
    )
RETURN
    vResult

Hi @PPDiaz1978 

 

vcgaomsft_1-1661824481457.png

Please provide sample data that completely covers the question, with expected output, thanks in advance!

How to provide sample data in the Power BI Forum

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

I need measure Target. I have Date, LApp, Count Measure How can I have this measure Target?

 

PPDiaz1978_0-1661843825066.png

 

 

Valor Percentil =
        VAR vTableID =
            RESUMEN ( Sesiones, Sesiones[LApp], Sesiones[Date], 
                        "Measure Target" RANKX TODAS (Sesiones), Sesiones[Count Measure])
            )
VAR vResultado =
    PERCENTILEX.INC (
        vTableID ,
        [Measure Target],
        [Percentiles de valor]
    )
DEVOLVER
    vResultado
 
First, I need a temporal table that have Measure Target 
Finally, I need to take the percentil X to be able to report this KPI
 
But first, I think I need to obtain the Target Measure before to calculate the percentil
Thx

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.

Top Solution Authors