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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Filtered rows

Hey everyone, 

 

I have a Project tbl and a Productivity tbl. There are connected based on ProjectID, with a 1-* relationship from Project to Productivity. Furthermore, I have a Employee tbl, which is connected with the Producitivity tbl on EmployeeID. An Employee can have several one or more projects, so the the relationship is 1-*.

 

 I have a matrix table with Employee, Project and Project category. I have informtion about the startdate of projects, but not for its category. Therefore, I want to show nothing, hence blanks, for these rows. The measure is as follows: 

Startdate (filter) =
SWITCH(
    TRUE(),
     ISFILTERED('Productivity tbl'[Project taak]), BLANK(),
     ISFILTERED('Project tbl'[Startdatum]), BLANK(),
     CALCULATE(
        MIN('Project tbl'[Startdatum])
       )
)
 
Unfortunately, it returns also rows with dates for Projects the employee didn't work on. It is just the startdate of the project (another employee was signed on to). 
How can these rows be filterd, so that a more clean overview is presented (in this case, only the project Cadamusque for Albert?).
The names (and projects) are fictional.
 
  Filter for Project.png 

 

1 ACCEPTED SOLUTION
rajendraongole1
Super User
Super User

Hi @Anonymous -can you check the below measure to displays blank for rows where the project category does not have a start date

Startdate (filter) =
VAR IsFilteredByProject = ISFILTERED('Productivity tbl'[Project taak])
VAR IsFilteredByStartDate = ISFILTERED('Project tbl'[Startdatum])

RETURN
SWITCH(
TRUE(),
IsFilteredByProject, BLANK(),
IsFilteredByStartDate, BLANK(),
CALCULATE(
MIN('Project tbl'[Startdatum]),
'Productivity tbl',
'Employee tbl'
)
)

 

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

2 REPLIES 2
Anonymous
Not applicable

@rajendraongole1 , perfect! Exactly I was looking for 🙂

rajendraongole1
Super User
Super User

Hi @Anonymous -can you check the below measure to displays blank for rows where the project category does not have a start date

Startdate (filter) =
VAR IsFilteredByProject = ISFILTERED('Productivity tbl'[Project taak])
VAR IsFilteredByStartDate = ISFILTERED('Project tbl'[Startdatum])

RETURN
SWITCH(
TRUE(),
IsFilteredByProject, BLANK(),
IsFilteredByStartDate, BLANK(),
CALCULATE(
MIN('Project tbl'[Startdatum]),
'Productivity tbl',
'Employee tbl'
)
)

 

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





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!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

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