cancel
Showing results for
Did you mean:
Regular Visitor

## Visual Level filter - Top condition is working for only one column

Hi Power Bi User,

I am trying to apply a filter conditions at visual level filter with top 5 records of my customer and top 5 countries..

i am not able to place two dimension filters with top N results. can you please suggest is there any way to get the filtering?

Above is the error i am facing.

Regards,

Rajendra

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support Team

## Re: Visual Level filter - Top condition is working for only one column

If you’d like to filter the TOP 5 of customer and TOP 5 countries by the same argument (i.e. [Sales]),  you can use the TOP N filter once, and you’ve got the 2 dimensions results.

If you’d like to filter TOP 5 of customer by sales, and TOP 5 countries by volume, it’s not accessible to apply them in same visual coz the logic is mixed up. You can use the measure below, and filter the measure without blank:

`Measure 3 = IF(RANKX(ALL(Table1),CALCULATE(SUM(Table1[Sales])))>5||RANKX(ALL(Table1),CALCULATE(SUM(Table1[Volume])))>5,BLANK(),1)`

Best regards,

Dina Ye

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
2 REPLIES 2
Highlighted
Community Support Team

## Re: Visual Level filter - Top condition is working for only one column

If you’d like to filter the TOP 5 of customer and TOP 5 countries by the same argument (i.e. [Sales]),  you can use the TOP N filter once, and you’ve got the 2 dimensions results.

If you’d like to filter TOP 5 of customer by sales, and TOP 5 countries by volume, it’s not accessible to apply them in same visual coz the logic is mixed up. You can use the measure below, and filter the measure without blank:

`Measure 3 = IF(RANKX(ALL(Table1),CALCULATE(SUM(Table1[Sales])))>5||RANKX(ALL(Table1),CALCULATE(SUM(Table1[Volume])))>5,BLANK(),1)`

Best regards,

Dina Ye

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Community Support Team

## Re: Visual Level filter - Top condition is working for only one column

If my above post helps, could you please consider Accept it as the solution to help the other members find it more quickly. thanks!

Best regards,

Dina Ye

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Announcements

#### Community Highlights

Find out what's new in the Power BI Community!

#### Power Platform Summit North America

Register by September 5 to save \$200

#### Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

#### Watch Sessions On Demand!

Continue your learning in our online communities.

Top Kudoed Authors
Users Online
Currently online: 124 members 1,866 guests
Recent signins: