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
Ibrahimashoor
New Member

Filtrar para mostrar las mejores tiendas con unas ventas combinadas especificadas

Hola a todos

Estoy tratando de encontrar para mostrar las mejores tiendas que represnts una sin reservas combinadas de 10B$ por ejemplo

Extra: sería hacer que esto combine ventas un parámetro whatIf (ese usuario puede cambiar de 1 , 2, ... 10B)

Gracias deimage.pngantemano T

1 ACCEPTED SOLUTION

Hola

Esta captura de pantalla debería decirlo todo. He aplicado un filtro con los criterios de <-3000000000. Estas son las medidas que utilicé

Rank of Stores by total sales = if(HASONEVALUE(Stores[StoreName]),RANKX(ALL(Stores[StoreName]),[Total Sales]),BLANK())
Cumulative sales = SUMX(TOPN([Rank of Stores by total sales],CALCULATETABLE(VALUES(Stores[StoreName]),ALL(Stores[StoreName])),[Total Sales]),[Total Sales])

Espero que esto ayude.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hola

Comparte el enlace desde donde puedo descargar tu archivo PBI.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Muchas gracias. He puesto el archivo en OneDrive (no pude cargarlo aquí idrectly)

https://1drv.ms/u/s!AibcI9O4iXjagYNCJ3-Qrsl1xRYa8A?e=bvBtnU

Es el archivo estándar de Microsoft Contososales

Hola @Ibrahimashoor

Prueba esto

Measure = 
VAR __sales =
    ADDCOLUMNS(
        ALL( Stores[StoreName] ),
        "@sales", [Total Sales] 
    )
VAR __stors = 
SELECTCOLUMNS(
    FILTER(
        __sales,
        SUMX( 
            FILTER( 
                SELECTCOLUMNS( __sales, "@@sales", [@sales] ), 
                [@sales] < [@@sales] 
            ), 
            [@@sales] ) > MAX( 'selections'[selection] )
    ),
    "StoreName", Stores[StoreName]
)
RETURN 
    CALCULATE(
        [Total Sales],
        KEEPFILTERS( NOT Stores[StoreName] IN __stors )
    )

Saludos
Mariusz

Si este post ayuda,entonces por favor considere aceptarlo como la solución.

Por favor, siéntase libre de conectarse conmigo.
Linkedin

Hola

Esta captura de pantalla debería decirlo todo. He aplicado un filtro con los criterios de <-3000000000. Estas son las medidas que utilicé

Rank of Stores by total sales = if(HASONEVALUE(Stores[StoreName]),RANKX(ALL(Stores[StoreName]),[Total Sales]),BLANK())
Cumulative sales = SUMX(TOPN([Rank of Stores by total sales],CALCULATETABLE(VALUES(Stores[StoreName]),ALL(Stores[StoreName])),[Total Sales]),[Total Sales])

Espero que esto ayude.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

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.