Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
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! |
|
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.