March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Como se podría hacer el cálculo del acumulado, que se acumula desde el mayor numeros de ventas hasta el menor del total general, por favor muchas gracias, sin seguir el orden de otra columna y seguir el orden de Cantidad de ventas de mayor a menor, pero Recien se puede saber el mayor cuando se resumen los datos en una matriz.
Solved! Go to Solution.
Hi @Keepin ,
Please have a try.
Accumulated Sales =
VAR _Rank = RANKX ( ALL ( Sales ), Sales[Sales Amount] )
VAR _TopN = 5
RETURN
IF ( _Rank <= _TopN,
CALCULATE (
SUM ( Sales[Sales Amount] ),
FILTER (
ALL ( Sales ),
RANKX ( ALL ( Sales ), Sales[Sales Amount] ) <= _Rank
)
)
)
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Community Support Team _ Rongtie
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Keepin ,
Please have a try.
Accumulated Sales =
VAR _Rank = RANKX ( ALL ( Sales ), Sales[Sales Amount] )
VAR _TopN = 5
RETURN
IF ( _Rank <= _TopN,
CALCULATE (
SUM ( Sales[Sales Amount] ),
FILTER (
ALL ( Sales ),
RANKX ( ALL ( Sales ), Sales[Sales Amount] ) <= _Rank
)
)
)
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Community Support Team _ Rongtie
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Muchas gracias Bro
Please use a quick measure for that - running total.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
123 | |
85 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |