The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi
I have a measure that can rank my data below: I need to be able to then get other values that correspond to the record that has this rank but icannot seem to 'grab' this rank to use in a lookup of filter. Any help please:
Hi @Mi_80 ,
If your measure works, it is suggested that you can directly add this measure into a filter. Please refer to
Add a filter to a report in Power BI - Power BI | Microsoft Learn
If you want a calculated column, please try
Rank =
RANKX (
CALCULATETABLE (
SUMMARIZE ( table, table[account], "total", SUM ( table[Amount] ) ),
FILTER (
Table,
table[statuscodename] = "Active"
&& [property] = "Yes"
&& table[Region] = EARLIER ( table[Region] )
)
),
[total],
,
ASC,
SKIP
)
Because of the influence of some context, and the difference in the nature of the measure and calculated columns, it is possible to run incorrectly.
Please provide more details, including your data model. It would be nice to be able to provide some virtual sample data.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
User | Count |
---|---|
69 | |
68 | |
65 | |
54 | |
28 |
User | Count |
---|---|
112 | |
82 | |
65 | |
48 | |
43 |