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! Request now
Hi,
If anybody has a idea how to optimize below measure? I need to find the most common price. It works but very slow 😕
Thanks a lot!
MostCommonPrice =
var prices = values(Details[Price])
var visitsnumber = calculate(DISTINCTCOUNT(Visitid), filter(Details, Details[Price] <> BLANK()))
return
CALCULATE(max(Details[Price]),
TOPN(1, ALL(Details[Price]),[visitsnumber]),
prices )
HI @mic_rys
Can you sahre a sample of your data and the result you are looking for:
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
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.
| User | Count |
|---|---|
| 6 | |
| 6 | |
| 4 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 24 | |
| 17 | |
| 10 | |
| 7 | |
| 6 |