Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Francesca-nz
New Member

Visual Filter TopN bug? - Only show first record in a visual based on a column

I have a table visual with a column 'names'. I have a second visual as a progress bar chart which should only show a measure for one person at a time: If no name is selected the first name from the table list (ordered asc by name) or the name that is selected from the table.

 

I have tried to achive this by using the visual filter funtion TopN and filter 1 by name, but it always shows the measure for the last name, even if I sort by FIRST or LAST. I have tried using a numeric column that is sorted by the name column and using MIN or MAX.

 

It always shows me the measure for the last name. It looks like that TopN in the visual filter setting is not working correctly. 

Are my settings for TopN incorrect or is there another way to achieve that?

1 REPLY 1
Anonymous
Not applicable

aniketraut0077_0-1678260910442.png

As you can see in the above screenshot by default its showing the sales for first name from slicer i.e. Caribbean. 

Check the below Screenshot as well.

aniketraut0077_1-1678261086856.png

 

And for the remining names, the visual will show the sales for that name only.

aniketraut0077_2-1678261205378.png

And for that i used the below measure.

 

aniketraut0077_3-1678261341699.png

in place of firstnonblank you can hardcode the value which you need to show default i.e. in your case its the first name from the table.

 

if your issue gets resolved, please mark by solution as answer. 

 

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.