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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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