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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Anonymous
Not applicable

Filter one variable but not another

Hi there,

 

I would like to filter a table by a specific variable (Project Name) to return a list of people working on that project. However, I would like to still see which other projects the people within that list are working on and how their demand is spread across these other projects. 

In summary I want to filter Person by Activity by show ALL activities of those people and their spread of demand.

 

I have tried this measure: 

RH Demand % Filter =
VAR selectedvalue = SELECTEDVALUE('Capacity Forecast'[Activity/Project Name])
RETURN
CALCULATE(SUM('Capacity Forecast'[Demand %]), ALL('Activity Group'[Activity/Project Name]))
 
However, it is still only returning the demand % of the project selected.
 
Can someone please help?
1 ACCEPTED SOLUTION

set the measure as a filter for that visual

View solution in original post

9 REPLIES 9
Ashish_Mathur
Super User
Super User

Hi,

Will this work?  You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Hi there,

 

When I select Project 1 it still only filters to the data relating to Project 1, it does not show me all of the other projects those people are working in:

JK_PowerBINew_0-1682685701423.png

I would like to be able to get the list of people working on Project 1 but also see all of their other activities.

In my solution. i have used Filters (not slicers).


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Ashish_Mathur
Super User
Super User

Hi,

Share some data to work with and show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
lbendlin
Super User
Super User

This is a standard "filtering up" pattern.

 

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
Please show the expected outcome based on the sample data you provided.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

Anonymous
Not applicable

Here is some very high level sample data with the main columns involved:

Full NameActivity Demand (% of Available Time in Month)
Person AProject 1 50
Person AProject 3 40
Person AProject 2 20
Person BProject 2 50
Person BProject 3 50
Person CProject 4 40
Person CProject 2 30
Person CProject 1 10
Person DProject 5 100

 

Here is what I would like to see if I select Project 1 from a slicer (an example table made in excel which is meant to mimic a matrix in Power BI):

Full Name Sum of Demand %
Person A110
Project 150
Project 220
Project 340
Person C80
Project 110
Project 230
Project 440

 

Here is what I am currently getting:

Full Name Sum of Demand %
Person A50
Person C10

 

I would like the user to be able to filter by a certain project and get a list of names of all the people currently with demand on that project but also see their spread of demand on other projects they are working on.

lbendlin_0-1682688517202.png

Projects is a disconnected table defined as 

 

Projects = VALUES('Table'[Activity])
Anonymous
Not applicable

Hi there,

 

Thank you this helps in that it flags the people working on the projects. Is there then a way I can take this measure a step further so that it filters to just the people with the flag?

Thanks

set the measure as a filter for that visual

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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