Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello - How can I find which month was the best month (MMM-YY) and (Total) sales for each agent?
Total sales = Sale - Marketing Fee
Please click here to download the PBIX file. Click Here
Thanks
I would like the result to be shown as below
@gauravnarchal , Assume you have measure sales - sum(Table[Sale])
Create a rank measure
rankx(summarize(allselected(sales), Date[Month Year], Agent[Agent]), [sales],,desc,dense)
and use visual level filter rank =1
or try like
TOPN with Two columns
2 column top N = CALCULATE([Sales], TOPN(1, summarize(allselected(sales), Date[Month Year], [Agent]), [Sales],DESC),VALUES('Date'[Month Year]]), VALUES('Agent'[Agent]) )
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 58 | |
| 45 | |
| 42 | |
| 20 | |
| 18 |