Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hi all,
I have filter witch contain "invoices" and "POS".
And also I have 4000 records (2000 for invoices and 2000 for POS).
I want get TOP X products with my filter. below is my filter code.
Solved! Go to Solution.
Nothing was changed ;\ ... but everything is ok, I just changed my sql. now I have two datasets and can rank individually.
Please use this:
Try this:
Try this:
Nothing was changed ;\ ... but everything is ok, I just changed my sql. now I have two datasets and can rank individually.
Hi @Anonymous
Try the below
RANKX( ALL('current year'[UnitsSold]), 'current year'[UnitsSold],, DESC, Dense )
Regards,
Mariusz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous
Try the below.
VAR tbl = CALCULATETABLE( VALUES( 'current year'[UnitsSold] ), ALLSELECTED() ) RETURN RANKX( tbl, 'current year'[UnitsSold],, DESC, Dense )
Regards,
Mariusz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
140 | |
113 | |
104 | |
77 | |
65 |
User | Count |
---|---|
136 | |
117 | |
101 | |
71 | |
61 |