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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Visualization help

Hey everyone,

I need some help in how to solve some issue.

I have two tables which are connected. I created measures on the basis of information from these tables. The measures are price/kg and complaints/kg. I now want to visualise the top 3 of price/kg and complaints/kg in the same graph (with country being on the X axis). If I select the top N filter, it only filters on the basis of either price/kg or complaints/kg. How can I solve this?

Thanks in advance.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi,@Anonymous 

Regarding the issue you raised, my solution is as follows:

1.First I have created the following table and the column names and data are the data you have given:

 

vlinyulumsft_3-1717470556799.png

vlinyulumsft_4-1717470562097.png

2. Below are the measure I've created for your needs:

 

RANKCOM = RANKX(ALL(complaints),[complaints/kg],,DESC,Dense)
RANKPRI = RANKX(ALL('PRICE'),[price/kg],,DESC,Dense)

 

3.Then I modified the filtering of the visualization objects as shown below:

vlinyulumsft_2-1717470414877.png

4.Here's my final result, which I hope meets your requirements.

This allows you to preserve both filters and only display values that are in the top three of both measures.

vlinyulumsft_5-1717470609991.png


Please find the attached pbix relevant to the case.

Best Regards,

Leroy Lu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi,@Anonymous 

Regarding the issue you raised, my solution is as follows:

1.First I have created the following table and the column names and data are the data you have given:

 

vlinyulumsft_3-1717470556799.png

vlinyulumsft_4-1717470562097.png

2. Below are the measure I've created for your needs:

 

RANKCOM = RANKX(ALL(complaints),[complaints/kg],,DESC,Dense)
RANKPRI = RANKX(ALL('PRICE'),[price/kg],,DESC,Dense)

 

3.Then I modified the filtering of the visualization objects as shown below:

vlinyulumsft_2-1717470414877.png

4.Here's my final result, which I hope meets your requirements.

This allows you to preserve both filters and only display values that are in the top three of both measures.

vlinyulumsft_5-1717470609991.png


Please find the attached pbix relevant to the case.

Best Regards,

Leroy Lu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Anonymous
Not applicable

Thanks for the help

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.