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
Hi all,
Thank you very much in advance for your support.
I am trying to calculate given a list of prices, the Mode within a 20EUR range so as to say, the most common price is between 120-140EUR.
To calculate the Mode I am using the measure:
MINX (
TOPN (
1,
ADDCOLUMNS (
VALUES ( Data[Value] ),
"Frequency", CALCULATE ( COUNT ( Data[Value] ) )
),
[Frequency],
0
),
Data[Value]
)Any ideas how to add 20 or subract 20 or any possible combination in between that would include the most hits?
Kind Regards,
Tomas
Solved! Go to Solution.
Solved like this:
Solved like this:
Any ideas how to add 20 or subract 20 or any possible combination in between that would include the most hits?
What do you mean by this? Calculating the mode(s) is rather simple. For each value in your set you just look at the number of any specific values and the one(s) that are/is the most frequent are/is the mode(s).
Sorry, I dont think I explained myself correctly. What I need is the most common subset of prices with length 20.
So, given a list of 100 sales, count how many fall within a 20EUR range and get the range with the highest count.
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 |
|---|---|
| 21 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 34 | |
| 31 | |
| 20 | |
| 13 | |
| 12 |