Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Hi All,
I need to display Top 10 values in a table visual where:
(1) the rows are filtered by a visual filter with a complex measure "IncludeInTable"
(2) and then display the top 10 rows from that filtered set.
This is what I'm trying.
The problem is that it's doing the reverse. The table is first applying the Top N filter and then applying the visual filter for IncludeInTable. As a result, only those rows in the top 10 rows for which IncludeInTable evaluates to 1 are being displayed.
How do I achieve the desired result? Your help is most appreciated.
Thanks,
Nandan
Hi,
You can combine the top 10 logic with your filter measure. E.g.
Demo data:
Filter measure: (just an example)
Now I will get top 3 based on ranking, but the same logic will apply for top 10.
Dax:
Summary: instead of using pre-built top filter use RANKX function combined with your filter measure. This way the filters can be applied with one measure.
I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!
My LinkedIn: https://www.linkedin.com/in/n%C3%A4ttiahov-00001/
Proud to be a Super User!
Hi @ValtteriN ,
Thanks for your help with this. I had tried the ranking approach but the requirements are slightly different.
My filtered dataset is something like this.
How do I displayTop 10 Lost Policies in one table visual, Top 10 Bound Policies in another table, Top 10 Incomplete Policies in another etc?
Your suggestion lead me to the solution. I modified my Ranking measure to wrap the RankX inside a calculate which runs the ranking over a filter that only includes either "Lost", or "Bound" or "Quoted" etc.
Many thanks for your help.
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
21 | |
20 | |
19 | |
13 | |
12 |
User | Count |
---|---|
41 | |
27 | |
23 | |
22 | |
22 |