This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hi All ,
I have a scenario to calculate all Onaccount values for top 10 customers and give the output into a CARD visual .
I have attached the table below which have top 10 customers and Onaccount values as well .
I tried few ways to figure it out but no luck . sum of on account will give huge value (for all customers but i need to sum only for top 10 customers only)
Please help me on this ..
The total Onaccount value should be 3.59 as per top 10 customers .
TIA
Solved! Go to Solution.
I think this might be my first response to a Power BI forum question so here goes ....
Filename solution.pbix
Size 20.75 KB
URL https://tmpfiles.org/dl/894730/solution.pbix
Expires at 2023-02-02 07:25 UTC
The approach to take is
1. First create a summary table (using say SUMMARIZE or ADDCOLUMNS) that has the columns you need to work with.
2. Then filter it somehow (eg: using say FILTER or TOPN) to get the rows you need to work with.
3. The perform some form of aggregation (an X function) on it, like SUMX, MAXX, MINX, AVERAGEX etc
I think this might be my first response to a Power BI forum question so here goes ....
Filename solution.pbix
Size 20.75 KB
URL https://tmpfiles.org/dl/894730/solution.pbix
Expires at 2023-02-02 07:25 UTC
The approach to take is
1. First create a summary table (using say SUMMARIZE or ADDCOLUMNS) that has the columns you need to work with.
2. Then filter it somehow (eg: using say FILTER or TOPN) to get the rows you need to work with.
3. The perform some form of aggregation (an X function) on it, like SUMX, MAXX, MINX, AVERAGEX etc
Hi @johnmelbourne Thanks for your quick response and it works well but .. i used like below ..
It appears you have two brackets surrounding the original measure sum when only one is needed.
Also, if you are getting 2.89, I suspect there is an external filter applying somewhere. Hover over the card funnel to see what filters are applying on the card visual.
total onacc = SUM((O2C_NAR_NAAC_On_Account[On Account])) IS INCORRECT
total onacc = SUM(O2C_NAR_NAAC_On_Account[On Account])
Try fix the first simple measure first and see if that impacts things.
Then if you are still getting 2.89 ... which is a weird number to get btw, then try
Top 10 Onaccount by cus v2 =
If that doesn't calculate correctly, then try and identify what it is you underlying dataset is by ...
Create a new table called vTable and have a look at the data it is summing.
Click New Table
vTable =
Then go to the table view of your new table and see what the values are in O2C_NAR_NAAC_On_Account[Customer Name],O2C_NAR_NAAC_On_Account[On Account]) and see if they sum to the correct amount.
Good News is CALCULATE top 10 formula is working fine and result given as expected : 3.59M
Thanks a lot for your help 🙂
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 35 | |
| 33 | |
| 26 | |
| 22 | |
| 18 |
| User | Count |
|---|---|
| 66 | |
| 36 | |
| 32 | |
| 26 | |
| 23 |