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
AshishKumarS
Regular Visitor

Get ALL the values in the Table visual when the selected value in the slicer is not there

Hi Everyone,

 

I have requirement . I have 2 tables as below:-

 

Fact_Table 1 

ID1

101

102

102

103

104

105

105 

 

Dim_Table1

ID2

101

102

103

104

105

106

 

When I put the Dim_Table1 ID2 in the slicer and Put ID1 from Fact_Table1 in the Table visual.

 

The ask is if I select 106 It should give me everything as an output as there is no value for 106 in Fact table.

 

If I select any other value 101 or 102 if should filter the Table visual and give the filter output 101 or 102 respectively.Capture1.PNG

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

Hi @AshishKumarS ,

 

According to your description, here are my steps you can follow as a solution.

(1) My test data is the same as yours.

(2) We can create a table and a measure. 

Table = EXCEPT('Dim_Table1','Fact_Table 1')
Flag = 
var _a=SELECTEDVALUE('Dim_Table1'[ID2])
RETURN SWITCH(TRUE(),
MAX('Fact_Table 1'[ID1]) in VALUES('Dim_Table1'[ID2]),1,
_a IN VALUES('Table'[ID2]),1,0)

(3) Place [Flag=1] on the visual filter and then the result is as follows.

vtangjiemsft_0-1710300163528.pngvtangjiemsft_1-1710300188355.png

Best Regards,

Neeko Tang

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

1 REPLY 1
v-tangjie-msft
Community Support
Community Support

Hi @AshishKumarS ,

 

According to your description, here are my steps you can follow as a solution.

(1) My test data is the same as yours.

(2) We can create a table and a measure. 

Table = EXCEPT('Dim_Table1','Fact_Table 1')
Flag = 
var _a=SELECTEDVALUE('Dim_Table1'[ID2])
RETURN SWITCH(TRUE(),
MAX('Fact_Table 1'[ID1]) in VALUES('Dim_Table1'[ID2]),1,
_a IN VALUES('Table'[ID2]),1,0)

(3) Place [Flag=1] on the visual filter and then the result is as follows.

vtangjiemsft_0-1710300163528.pngvtangjiemsft_1-1710300188355.png

Best Regards,

Neeko Tang

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.