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 August 31st. Request your voucher.

Reply
NumeroENAP
Helper III
Helper III

Need a measure to obtain only one value per client out of many forms

Here is an exemple of my model : 

 

NO_EvaluationQuestionDateConformity
1Q12020-01-23Conform
1Q22020-01-23Conform
1Q32020-01-23Conform
1Q42020-01-23Conform
2Q12020-01-24Not conform
2Q22020-01-24Not conform
2Q32020-01-24Not conform
2Q42020-01-24Not conform

 

And this is what I want my measure to do : 

 

ConformityNB
Conform1
Not conform1

 

I also have a separate table with the dates of the current fiscal years ("FiscalYear"), and I want my measure to filter the results to only show results with dates that matches the ones in my "FiscalYear" column. 

 

Thanks!

4 REPLIES 4
Anonymous
Not applicable

Try something like
Measure= calculate(distinctcount(table[id]),contains(table,table[date],fiscal[date])

If it resolves your problem mark it as a solution and give Kudos.

Thanks
Pravin

Sorry @Anonymous , I forgot to mention that I wanted it to return the lastest completed form of each table[ID]. 

 

Thanks!

Anonymous
Not applicable

Do u mean latest date per id?

Add one more condition in above measure.
Filter(all(table[date],table[date]=max(table[date]))

Thanks,
Pravin

If it resolves your problem mark it as a solution and give Kudos.

Well... I have 38 completed forms, but the results it gives me it : 

 

Conform : 1
Not conform : 1

 

Obviously, it gives me the ID that matches the newest [date].

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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