cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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

Accepted Solutions
Highlighted
Community Support
Community Support

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

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
Highlighted
Super User IX
Super User IX

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

@auppala ,what do mean by url here ?

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



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

Helper I
Helper I

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

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

Highlighted
Community Support
Community Support

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

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

Highlighted
Helper I
Helper I

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

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

 

Highlighted
Community Support
Community Support

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

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

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Upcoming Events

Experience what’s next for Power BI

See the latest Power BI innovations, updates, and demos from the Microsoft Business Applications Launch Event.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Mark your calendars and join us for our next Power BI Dev Camp!.

Top Solution Authors
Top Kudoed Authors