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! It's time to submit your entry. Live now!
Hi,
MaxSale = MAX(RandomNumbers[Value]) is the highest value in the column value
Decile1 = [MaxSale]/10 is the Decile (98)
Count in 1St Decile = countrows(CALCULATETABLE(RandomNumbers,RandomNumbers[Value] >0 && RandomNumbers[Value] <=98)) this works.
Count in 1St Decile(2) = countrows(CALCULATETABLE(RandomNumbers,RandomNumbers[Value] >0 && RandomNumbers[Value] <=98)) This works too
What to do to use the "Decile1" measure instead of one of the values?
Thanks Giora
Solved! Go to Solution.
Hi @gtamir
The simplest fix is probably to store [Decile1] in a variable:
TEST =
VAR Decile1_Var = [Decile1]
RETURN
COUNTROWS (
CALCULATETABLE ( RandomNumbers, RandomNumbers[Value] > Decile1_Var )
)
Yes it works, thanks
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 61 | |
| 48 | |
| 35 | |
| 25 | |
| 23 |
| User | Count |
|---|---|
| 134 | |
| 110 | |
| 59 | |
| 39 | |
| 32 |