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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
v-jayw-msft
Community Support
Community Support

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.

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

View solution in original post

1 REPLY 1
v-jayw-msft
Community Support
Community Support

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.

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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