Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! 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
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 57 | |
| 33 | |
| 33 | |
| 19 | |
| 18 |
| User | Count |
|---|---|
| 68 | |
| 67 | |
| 45 | |
| 30 | |
| 28 |