Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |