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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
auppala
Helper I
Helper I

Filter by company and show all filter selection related sector companies in a chart

Hi,

I have a requirement to show list of all companies, based on a company filter selection (passed via URL filter. Different sector companies can be passed via URL filters)

Purpose is to show where a company stands in comparison to other companies in a particular sector.                       

 

For example: If i get the URL filter value as "Citi Bank" then i need to show in a chart all companies which come under "Citi Bank's" sector which is "Finance". Also the selected filter value Citi Bank should be highlighted amongst other finance companies to know where it stands against the rest. 

 

Please find the dataset format below.

 

 

 

Data 

SectorCompany YaxisXaxis
Finance F122.4200
Finance F232.5240
Finance F320.5300
Finance F430.2232
Finance F519.5234
TechnologyT112.4111
TechnologyT233.2121
TechnologyT314110
    

 

 

 

Regards

 

 

 

1 ACCEPTED SOLUTION
v-juanli-msft
Community Support
Community Support

Hi @auppala 

Create a new table without any relationship:

select = SUMMARIZE('Table','Table'[cate],'Table'[Company ],'Table'[Sector])

Create measures and add to visual level filter, add measure to control conditional formatting

Capture8.JPGCapture9.JPG

 

M-selected = CONCATENATEX(ALLSELECTED('select'),'select'[Sector],",")

M-flag = SEARCH(MAX('Table'[Sector]),[M-selected],1,0)

M-color = SEARCH(MAX('Table'[Company ]),CONCATENATEX(ALLSELECTED('select'),'select'[Company ],","),1,0)

 

Best Regards
Maggie
Community Support Team _ Maggie Li
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

5 REPLIES 5
v-juanli-msft
Community Support
Community Support

Hi @auppala 

Create a new table without any relationship:

select = SUMMARIZE('Table','Table'[cate],'Table'[Company ],'Table'[Sector])

Create measures and add to visual level filter, add measure to control conditional formatting

Capture8.JPGCapture9.JPG

 

M-selected = CONCATENATEX(ALLSELECTED('select'),'select'[Sector],",")

M-flag = SEARCH(MAX('Table'[Sector]),[M-selected],1,0)

M-color = SEARCH(MAX('Table'[Company ]),CONCATENATEX(ALLSELECTED('select'),'select'[Company ],","),1,0)

 

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

v-juanli-msft
Community Support
Community Support

Hi @auppala 

Where is the "Citi Bank" ? is it a value from a column?

Which relationship is between this "Citi Bank" and the current data table?

It seems possible with power bi desktop using DAX function.

If it is only allowed to use power bi service using query string parameter, it may be difficult.

 

Best Regards

Maggie

Hi @v-juanli-msft ,

      I have quoted citi bank for explanation of the scenario as an example. I have copied sample dataset for reference. 

I need the implementation in desktop, can you please share logic on how can we acheive this. 

Thanks and Regards

 

amitchandak
Super User
Super User

Hi Amit,

what i meant by URL Filters was "Filter a report using query string parameters in the URL"

https://docs.microsoft.com/en-us/power-bi/collaborate-share/service-url-filters

 

Regards

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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