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
rena9994
Frequent Visitor

Filter a disconnected table with a slicer

Following suggestions of submitting a question, this is an improved version of my original question: https://community.powerbi.com/t5/Desktop/Display-two-rows-with-multiple-column-values/m-p/1103049#M5...

 

1. Given two related tables related using field PID.

Table 1 - Test Run

PIDServiceCountReturnDuration
1068A12801024.595
1200B1280508.1637
1404B1100493.2852
1200B128211.48419.2638
1404A128164.82383.6828
7148B128211.39449.0829
7204B 0421.8271
7924OD126917.141193.8
177964O127386.6769.1757
183668B128207.711119.463
183992B128205.24487.8962
173968O127517.65877.118

Table Two - Tests workflows

PIDWorkflow numberTrace result testHTTP result success
1779641FailFALSE
1836681FailFALSE
1839921PassTRUE
10682PassTRUE
12002PassTRUE
1739683PassTRUE
1779643FailTRUE
1836683FailTRUE
1839923PassTRUE
10684PassTRUE
12004PassTRUE
14044PassTRUE
15564PassTRUE
1779645FailTRUE
1836685FailTRUE
1839925PassTRUE
10686PassTRUE
12006PassTRUE
14046Pass

TRUE

 

I also have a disconnected table below with more details on each workflow and a baseline row for each workflow. (Note please ignore values of the sum of Table A and Table B not equal to Row count - I removed a few columns)

 

SlicerBaselineProcessIDWorkflow numberTable countRow countTable ATable B
0Yes 16316991649215217
1068 106816317091649215217
1200 120016317091649230434
1404 140416317091649215217
0Yes 21137250127815217
1068 106821137260128815217
1200 120021137260257630434
1404 140421137260128815217
0Yes 33506161347
1068 1068335090347
1200 1200335090694
1404 1404335090347
0Yes 43427137290
1068 1068434270290
1200 1200434270580
1404 1404434270290
0Yes 53311013051705
1068 106853311101706
1200 120053311103412
1404 140453311101706
0Yes 63344130214
1068 1068633430214
1200 1200633430428
1404 1404633430214

 

The desired visual for this table is to show the workflow baseline vs the PID result to compare workflow details..

SlicerBaselineProcessIDWorkflow numberTable countRow countTable ATable B
0Yes 16316991649215207
0 106816317091649215217
0Yes 21137250127815217
0 106821137260128815217
0Yes 33506161347
0 106833509162347
0Yes 43427137290
0 106843427137290
0Yes 53311013051705
0 106853311113051706
0Yes 63344130214
0 106863343130213

 

3. I'd like to create a measure that will change the value of [Slicer] field in the disconnected table from PID to 0 so that a visual filter can be used on the value '0'. The row whose PID value is changed will be based on the selected PID on a slicer that filters Tables 1 and 2.

 

4 REPLIES 4
v-xicai
Community Support
Community Support

Hi   @rena9994 ,

 

Does that make sense? If so, kindly mark the proper reply as a solution to help others having the similar issue and close the case. If not, let me know and I'll try to help you further.

 

Best regards

Amy

v-xicai
Community Support
Community Support

Hi @rena9994 ,

 

You can create measure Filter1 like DAX below ,then put measure Filter1 in the Visual Level Filter of table visual displaying the disconnected table , and setting the Filter1 as "is not blank".

 

Filter1 = IF(MAX([Slicer])=0,1,BLANK())

Filter1_is not blank.png

 

 

 

 

 

 

 

 

Best Regards,

Amy 

 

Community Support Team _ Amy

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

Amy, thanks for your reply. That's the last part and I have a good handle on that part already. The part I have a problem with is changing the Slicer value in the disconnected table from PID to 0, once the PID is selected from the slicer that filters the two connected tables

.

Hi @rena9994 ,

 

You may create an intermediate table like DAX below, create relationships with your original two tables, then put 'Intermediate Table'[PID] into slicer visual to filter the other two tables.

 

Intermediate Table = UNION(DISTINCT(Table1[PID]), DISTINCT(Table2[PID]))

 

Best Regards,

Amy 

 

Community Support Team _ Amy

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

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.

Top Solution Authors