cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

Filter a table based on information from another table

Hi all, here's my question. 

I have Table A that compiles a series of projects with their status: 

Project IDStatus
Astarted
Bwaiting signature
Cclosed

 

And a table B with details for all the projects : 

Project IDStatusNbr of participants
Astarted32
Awaiting signature26
Aclosed50
Bstarted10
Bwaiting signature10
Bclosed

10

Cstarted

108

Cwaiting signature

100

Cclosed

150

 

I'd like to create a matrice that displays, by Status (from table A) the list of projects & their number of participants. That is : 

 

StatusProject IDNbr of participants
Waiting signatureB10
StartedA32
ClosedC150

 

I tried to use a simple filter on status from table A, but it doesnt work.

Any ideas? 

 

Thanks in advance!! 

Ana 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User II
Super User II

Re: Filter a table based on information from another table

Hi @AFra 

create a column in Table A and set Parameter Row Headers Stepped Layout =Off in visual settings

Column = CALCULATE(MAX('Table B'[Nbr of participants]),
FILTER('Table B', 'Table B'[Status]=EARLIER('Table A'[Status]) && 'Table B'[Project ID]=EARLIER('Table A'[Project ID])))

 

 Снимок.PNG


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

View solution in original post

1 REPLY 1
Highlighted
Super User II
Super User II

Re: Filter a table based on information from another table

Hi @AFra 

create a column in Table A and set Parameter Row Headers Stepped Layout =Off in visual settings

Column = CALCULATE(MAX('Table B'[Nbr of participants]),
FILTER('Table B', 'Table B'[Status]=EARLIER('Table A'[Status]) && 'Table B'[Project ID]=EARLIER('Table A'[Project ID])))

 

 Снимок.PNG


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

View solution in original post

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Upcoming Events

Upcoming Events

Wondering what events you could join or have an event to promote yourself? Check out our Upcoming Events.

Community Summit Australia – Join Online!

Community Summit Australia – Join Online!

Be a part of the leading Microsoft Business Applications digital event, curated for the APAC community.

Top Solution Authors
Top Kudoed Authors