cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Looking for way to filter based on related field to selected value

Hello everyone,

 

I have a need to be able to select a single ticket number and then filter other visuals/values based on a related field to that ticket number. For example:

 

nghtwlker17_0-1596734859186.png

In the above I have selected ticket 693379, which has a value of application error. I want a count of all application error's in the bottom box based on selecting the ticket number.

 

I've tried this calculation with no luck, and tried some variations of values with no luck.

 

mSelected subtype disCount SR = CALCULATE(DISTINCTCOUNT(v_rpt_Service_Summary[SR_Service_RecID]), FILTER(ALL(v_rpt_Service_Summary), SELECTEDVALUE(v_rpt_Service_Summary[ServiceSubType])))

 

Please let me know if I can help with any additional info, thanks in advance for any suggestions.

 

Regards,

Seth Calkins

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User IV
Super User IV

Re: Looking for way to filter based on related field to selected value

@nghtwlker17 Not really enough information to go on, please first check if your issue is a common issue listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882

Also, please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.


---------------------------------------

@ me in replies or I'll lose your thread!!!

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

2 REPLIES 2
Highlighted
Super User IV
Super User IV

Re: Looking for way to filter based on related field to selected value

@nghtwlker17 Not really enough information to go on, please first check if your issue is a common issue listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882

Also, please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.


---------------------------------------

@ me in replies or I'll lose your thread!!!

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

Highlighted
Frequent Visitor

Re: Looking for way to filter based on related field to selected value

Thanks Greg, a more in depth search did turn up a related post that provided the solution.

https://community.powerbi.com/t5/Desktop/Filtering-and-Measures-based-on-a-field-related-to-slicer/m...

 

 

Helpful resources

Announcements
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!.

Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors