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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

Filtering table based on Measure result

Hello,

this is my first week working in Power Bi, and I am facing some basic issues you'd maybe help me with.

 

I have a table listing a series of activities, each with the start/end dates and the assigned resource.

I want to know for each week how many activities/resources are used. So I created the following measure which seems to work fine.

 

 

 

ResourceByDate = COUNTROWS(FILTER(Resources,Resources[Start]<=MAX('Calendar'[Date]) && Resources[Finish]>MIN('Calendar'[Date])))

 

 

 

 

Now the problem is that I would like that when I click on a particular week on the top table, I can see in the bottom table only the activities happening that particular week.

Screenshot1.png

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , refer my HR blog and attached file on a similar topic

https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-trend/ba-p/882970

 

 

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
Anonymous
Not applicable

Thank you @amitchandak , I tried with your file but I got a similar issue. 

 

In your file, if I select a date from the Trends view, the resources selected are the ones just hired in that date (hired employees).

 

What I am trying to do is to see the list of the "current Emplyees". For example if I select June 2015, I want to get 8 employees, whilst now I am gettin only the 2 that just started.

 

This is due to the fact that the active relationship is between Start Date and Date.

 

 

Screenshot2.png

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!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.