Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
bgashok
Helper I
Helper I

filter of UI table as per row selcted on another UI table

I have two data table and create a belwo UI in power bi. 

bgashok_0-1710669427931.png

Trying to add another table to display item as per row selected by user in able table with work ID & Sample date.it can be blank if no row selected and  say for example when user select IT1 row, UI table -2:  need to show work items that are present as on  start , also addtional data present on End date (in between date be ignored) with ireation as IT1 and closed date can be blank or not closed before start date.

bgashok_0-1710670282170.png

 

 

Table1 is sample of task collected on each day for duration.  planned task are all task present on start data as per iteration and not closed before sample date. 

Data table : 2

IterationStart DateEnd Date
IT110/25/202311/7/2023
IT211/8/202311/21/2023
IT311/22/202312/5/2023
IT412/6/202312/19/2023
IT512/20/20231/2/2023
IT61/3/20231/16/2023

 

 

Table 1: 

IterationIDStateClosed Datecalendar Date
IT2312987Newnull11/4/2023
IT2213789Developnull11/7/2023
IT2213789Developnull11/8/2023
IT2315707Developnull11/8/2023
IT2315707Newnull11/4/2023
IT2315708Newnull11/4/2023
IT2317524Readynull11/7/2023
IT2317524Readynull11/8/2023
IT2198723Developnull11/7/2023
IT2198723Developnull11/8/2023
IT2198726Readynull11/7/2023
IT2198726Readynull11/8/2023
IT2281822Readynull10/31/2023
IT2281822Readynull11/4/2023
IT2213788Developnull11/7/2023
IT2213788Developnull11/8/2023
IT2316632Newnull11/4/2023
IT2316632Readynull11/7/2023
IT2316632Readynull11/8/2023
IT2315707Readynull11/7/2023
IT2315708Readynull11/7/2023
IT2315708Readynull11/8/2023
IT2281822Readynull10/28/2023
IT2312987Readynull11/7/2023
IT2312987Readynull11/8/2023
IT2317502Readynull11/7/2023
IT2314648Readynull11/7/2023
IT2314648Developnull11/8/2023
IT2314648Newnull11/4/2023
IT2318376Newnull11/7/2023
IT2318376Newnull11/8/2023
IT2312036Newnull11/4/2023
IT2312036Newnull11/7/2023
IT2312036Newnull11/8/2023
IT2312039Developnull11/4/2023
IT2315826Developnull11/7/2023
IT2315826Developnull11/8/2023
IT2315826Newnull11/4/2023
IT2312039Developnull10/28/2023
IT2312039Developnull10/31/2023
IT2312036Newnull10/28/2023
IT2312036Newnull10/31/2023
IT2314648Newnull10/31/2023
IT2297455Readynull11/8/2023
IT2198727Readynull10/28/2023
IT2198727Readynull10/31/2023
IT2198727Readynull11/4/2023
IT2198727Readynull11/7/2023
IT2198727Readynull11/8/2023
IT2319362Newnull11/8/2023
IT2312987Newnull10/31/2023
IT4317502Readynull11/8/2023
IT2297451Developnull11/7/2023
IT2297451Developnull11/8/2023
IT1313293Developnull10/28/2023
IT1313293Developnull10/31/2023
IT1313293Developnull11/4/2023
IT1313284Developnull10/28/2023
IT1313284Developnull10/31/2023
IT1313284Donenull11/4/2023
IT1312039Readynull10/25/2023
IT1313284Develop 11/7/2023
IT1313284Closed11/5/202311/8/2023
IT1313281Newnull10/28/2023
IT1313281Developnull10/31/2023
IT1313281Developnull11/4/2023
IT1313296Developnull10/31/2023
IT1313296Developnull11/4/2023
IT1313296Closed11/7/202311/7/2023
IT1313296Closed11/7/202311/8/2023
IT1311563Readynull10/25/2023
IT1311563Developnull10/28/2023
IT1311563Developnull10/31/2023
IT1311563Developnull11/4/2023
IT1312036Newnull10/25/2023
IT1313296Newnull10/28/2023
IT1311563Newnull10/24/2023
IT1311563Closed11/7/202311/7/2023
IT1311563Closed11/7/202311/8/2023
IT1312015Readynull10/25/2023
IT1312015Developnull10/28/2023
IT1312015Developnull10/31/2023
IT1312015Closed11/2/202311/4/2023
IT1313325Developnull11/4/2023
IT1313293Closed11/6/202311/7/2023
IT1313293Closed11/6/202311/8/2023
IT1312015Closed11/6/202311/7/2023
IT1312015Closed11/6/202311/8/2023
IT1313325Closed11/7/202311/7/2023
IT1313325Closed11/7/202311/8/2023
IT1198726Readynull10/25/2023
IT1198726Readynull10/28/2023
IT1198726Readynull10/31/2023
IT1198726Readynull11/4/2023
IT1198723Developnull10/31/2023
IT1198723Developnull11/4/2023
IT1311583Closed11/5/202311/7/2023
IT1311583Closed11/5/202311/8/2023
IT1311583Readynull10/25/2023
IT1311583Readynull10/28/2023
IT1311583Readynull10/31/2023
IT1311583Donenull11/4/2023
IT1198723Developnull10/25/2023
IT1198723Developnull10/28/2023
IT1213788Readynull10/31/2023
IT1306649Developnull10/25/2023
IT1306649Developnull10/28/2023
IT1306649Developnull10/31/2023
IT1306649Developnull11/4/2023
IT1306649Developnull11/7/2023
IT1306649Developnull11/8/2023
IT1306649Newnull10/24/2023
IT1213789Readynull10/28/2023
IT1213788Developnull11/4/2023
IT1313281Closed11/7/202311/7/2023
IT1313281Closed11/7/202311/8/2023
IT1213789Newnull10/25/2023
IT1213788Newnull10/25/2023
IT1198727Readynull10/25/2023
IT1311583Newnull10/24/2023
IT1281822Readynull10/25/2023
IT1297451Readynull10/25/2023
IT1297451Developnull10/28/2023
IT1297451Developnull10/31/2023
IT1297451Developnull11/4/2023
IT1213789Readynull10/31/2023
IT1213789Developnull11/4/2023
IT1213788Readynull10/28/2023
IT1297451Newnull10/24/2023
IT1281822Newnull10/24/2023
IT1314650Closed11/5/202311/7/2023
IT1314650Closed11/5/202311/8/2023
IT1313288Closed10/30/202310/31/2023
IT1313288Closed10/30/202311/4/2023
IT1313288new 11/7/2023
IT1313288Closed10/30/202311/8/2023
IT1279821Closed11/5/202311/7/2023
IT1279821Closed11/5/202311/8/2023
IT1279821Developnull11/4/2023
IT1314650Developnull10/31/2023
IT1314650Developnull11/4/2023
IT1313288Donenull10/28/2023
IT1312045Readynull10/25/2023
IT1312045Readynull10/28/2023
IT1312045Developnull10/31/2023
IT1312045Closed11/2/202311/4/2023
IT1312045Closed11/2/202311/7/2023
IT1312045Closed11/2/202311/8/2023
IT1313325Readynull10/28/2023
IT1313325Readynull10/31/2023
IT1281822Closed11/7/202311/7/2023
IT1281822Closed11/7/202311/8/2023
IT3213790Newnull11/4/2023
IT3213790Newnull11/7/2023
IT3213790Newnull11/8/2023
IT3213791Newnull11/4/2023
IT3213791Newnull11/7/2023
IT3213791Newnull11/8/2023
IT3312039Readynull11/7/2023
IT3312039Readynull11/8/2023
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@bgashok , Try a measure like

 

FilteredItems =
VAR SelectedIteration = SELECTEDVALUE(DataTable2[Iteration])
VAR StartDate = CALCULATE(MIN(DataTable2[Start Date]), DataTable2[Iteration] = SelectedIteration)
VAR EndDate = CALCULATE(MAX(DataTable2[End Date]), DataTable2[Iteration] = SelectedIteration)
RETURN
IF(
ISBLANK(SelectedIteration),
BLANK(),
CALCULATE(
COUNTROWS(Table1),
Table1[Iteration] = SelectedIteration,
Table1[Calendar Date] >= StartDate,
OR(Table1[Closed Date] >= StartDate, ISBLANK(Table1[Closed Date]))
)
)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
bgashok
Helper I
Helper I

Thankyou @amitchandak 

amitchandak
Super User
Super User

@bgashok , Try a measure like

 

FilteredItems =
VAR SelectedIteration = SELECTEDVALUE(DataTable2[Iteration])
VAR StartDate = CALCULATE(MIN(DataTable2[Start Date]), DataTable2[Iteration] = SelectedIteration)
VAR EndDate = CALCULATE(MAX(DataTable2[End Date]), DataTable2[Iteration] = SelectedIteration)
RETURN
IF(
ISBLANK(SelectedIteration),
BLANK(),
CALCULATE(
COUNTROWS(Table1),
Table1[Iteration] = SelectedIteration,
Table1[Calendar Date] >= StartDate,
OR(Table1[Closed Date] >= StartDate, ISBLANK(Table1[Closed Date]))
)
)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors