Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register 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
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
64 | |
63 | |
52 | |
36 | |
36 |
User | Count |
---|---|
80 | |
71 | |
58 | |
45 | |
44 |