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
Hello.
I have the following table:
CycleID, UserNAme,CustomerID, score.
I want to create a formula that sums the top 10 scores within cycleid,username. Any suggestion? I have been trying TOPN but it doesnt work.
Thank you
Solved! Go to Solution.
Hi @mbosch
Is this what you want (I take top 2 as an example)? If not, can you please provide some dummy data and expected result that we can work with?
Measure = SUMX(TOPN(2, 'Table', 'Table'[Score], DESC), 'Table'[Score])
Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!
Hi @mbosch
Is this what you want (I take top 2 as an example)? If not, can you please provide some dummy data and expected result that we can work with?
Measure = SUMX(TOPN(2, 'Table', 'Table'[Score], DESC), 'Table'[Score])
Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!
Hello.
It doesnt work. It is not summing the top 10. Any alternative?
@mbosch , Try using below mentioned method
Top10ScoreSum =
CALCULATE (
SUM ( 'YourTableName'[score] ),
TOPN (
10,
'YourTableName',
'YourTableName'[score],
DESC,
'YourTableName'[CycleID],
'YourTableName'[UserName]
)
)
Please accept as solution and give kudos if it helps
Proud to be a Super User! |
|
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 |
---|---|
129 | |
90 | |
75 | |
58 | |
53 |
User | Count |
---|---|
200 | |
104 | |
101 | |
67 | |
55 |