Slice creation for new tabel

I have two tables like below

  1. Daily updating table
    3X_4_6_464e7f351250186cb9e4a3aa92dd9e2563f29245.png

  2. Only for report - ( editing the same row)
    3X_4_d_4da046102a5f31f7b8ef486dbaa15af68b9194b2.png

I want to create a slice table C with the date of table A based on table B criteria

like this
3X_0_7_07495c93b9fcfb61ded68df486241fd204f6ffb4.png

Any one please suggest me a solution for this

0 1 107
1 REPLY 1

Hello-

Iโ€™m not sure if I got it correctly but based on your screenshots. You want to filter the data in Table A based on the columns in Table B. If yes, please test the formula below. But I havenโ€™t tested it in the app editor. Feel free to give feedback in case you encountered any errors.

AND(
	[Date] >= 
	ANY(
		SELECT(
			Table B[From],
			TRUE
		)
	),
	
	[Date] <=
	ANY(
		SELECT(
			Table B[To],
			TRUE
		)
	),
	
	[Customer] = 
	ANY(
		SELECT(
			Table B[Customer],
			TRUE
		)
	)
)
Top Labels in this Space