Reply
arikofather
Helper I
Helper I
Partially syndicated - Outbound

Filtering a Table from Unconnected table

Please see attached PBIX

 

https://1drv.ms/u/s!AlMdRxAveLesgegBXfqFY0rPLElZcA?e=bcP2cP

 

Here is my simple dataset:

    
NameDays from Closed Date
    
A15  
B87  
C101  
D190  
E280  
F590  
    

 

I want to filter table by a Period table

arikofather_0-1718382491443.png

 

Here are the expected results:

 

1. If Period 28 days (<= 28 days) days Selected,

 

NameDays from Closed Date
    
A15  

 

2. If Period 3 Months (<= 90 days) Selected

NameDays from Closed Date
   
A15 
B87 

 

3. If Period 1 Year (<= 365 days) is Selected

NameDays from Closed Date
  
A15
B87
C101
D190
E280

 

1 ACCEPTED SOLUTION
rajendraongole1
Super User
Super User

Syndicated - Outbound

Hi @arikofather - When selecting a period from an unconnected table (Table B) filters the data from Table A, 

 

I have create a measure for selected period B 

rajendraongole1_0-1718384748879.png

 

SelectedPeriodDays =
SELECTEDVALUE('CPeriod'[Days], MAX('CPeriod'[Days]))
 

 

Create another measure that determines if the rows in Table A should be displayed based selection period as below:

 

ShowRows =
VAR SelectedDays = SELECTEDVALUE('Cperiod'[Days], MAX('Cperiod'[Days]))
RETURN
IF(
    MAX('CDT'[Days from Closed Date]) <= SelectedDays,
    1,
    0
)
 
rajendraongole1_1-1718384843677.png

 

Choose a table chart, apply the visual level filter by using a measure ShowRows is 1

 

rajendraongole1_2-1718384909208.png

 

add period field on report with slicer chart and select the conditions, it works as expected. please check

 

rajendraongole1_3-1718385001977.png

 

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!





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

Proud to be a Super User!





View solution in original post

1 REPLY 1
rajendraongole1
Super User
Super User

Syndicated - Outbound

Hi @arikofather - When selecting a period from an unconnected table (Table B) filters the data from Table A, 

 

I have create a measure for selected period B 

rajendraongole1_0-1718384748879.png

 

SelectedPeriodDays =
SELECTEDVALUE('CPeriod'[Days], MAX('CPeriod'[Days]))
 

 

Create another measure that determines if the rows in Table A should be displayed based selection period as below:

 

ShowRows =
VAR SelectedDays = SELECTEDVALUE('Cperiod'[Days], MAX('Cperiod'[Days]))
RETURN
IF(
    MAX('CDT'[Days from Closed Date]) <= SelectedDays,
    1,
    0
)
 
rajendraongole1_1-1718384843677.png

 

Choose a table chart, apply the visual level filter by using a measure ShowRows is 1

 

rajendraongole1_2-1718384909208.png

 

add period field on report with slicer chart and select the conditions, it works as expected. please check

 

rajendraongole1_3-1718385001977.png

 

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!





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

Proud to be a Super User!





avatar user

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)