Hi @ndris ,
First, using TOPN function will return a table not specific value, so it need to create a calculated table not measure...
Do you want to get the TOPN legalnames? If yes, you can refer the following links to get it.
How to Create Power BI TOP N Report (Variable TOP N Filter)
3 ways to get TOPN values in Power BI
Filter top n records Power BI
If the above one is not working for you, please provide some sample data(exclude sensitive data) with Text format and your expected result with special examples and screenshots. It is better if you can provide me a simplified pbix file. Thank you.
Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.