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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Anonymous
Not applicable

Use a measure as a filter or in another measure to only see data when date is greater than

Hi,

I have an issue where I have a report with many ID’s all ID’s also have identification which is not unique. The identification is what is used as PK in my measure table with many registrations per identification. All ID’s have a registration date and I use that to find project start date. Problem occurs when same identification is used in more than one project and the min registration date is prior to project start date. I created a calculated column in my measure table to find if its in project or not, but this can only see the identification and does not know which of them is in a project.
Is there a way to use a measure or create a measure that says if my ID is in project or not, and then only show data on or after that date in a report. Right now I'm using InProject from measure table, which like I've said is wrong for some projects.

My Project start measure is just: Project Start = min(ID_registration[date_reg])

 

Below is my relationsship view to make it clearer what my problem is. 

 

relationship view.PNG

 

This report page shows that my filter is wrong and i need to create a measure or something to apply as a filter to only see values after this particular project start.

 

wrong sensors.PNG

 

My registration with Identification gjd123 has ID 10 and 4:

Capture.PNG

Thanks!

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

I'm sorry, i didn't get the point.

You want calculated the min date for project has multiple ids and the id should exists in id table?

Like this?

6.PNG

Measure = CALCULATE(MIN('Table'[date]),FILTER('Table','Table'[id]=SELECTEDVALUE('id'[id])))

7.PNG 

 

Best Regards,

Jay

 

Community Support Team _ Jay Wang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous ,

 

I'm sorry, i didn't get the point.

You want calculated the min date for project has multiple ids and the id should exists in id table?

Like this?

6.PNG

Measure = CALCULATE(MIN('Table'[date]),FILTER('Table','Table'[id]=SELECTEDVALUE('id'[id])))

7.PNG 

 

Best Regards,

Jay

 

Community Support Team _ Jay Wang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.