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 September 15. Request your voucher.

Reply
selected_
Helper IV
Helper IV

How to create calcuclated column and put it on legend

I wanna display the latest rating given to an employee. In my data, I have columns 'rating' and '' in the 'doc' table, and a ''. I want to return the latest record rating giv en o an employee based only if the termination date is greater than the  and wanna exclude old given rating.

 

the table data look like this:

 

 

 

the result should look like this:

 

 

 

how should I do ?

 

 

8 REPLIES 8
Ashish_Mathur
Super User
Super User

Hi,

PBI file attached.

Hope this helps.

Ashish_Mathur_0-1699668034390.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
ryan_mayu
Super User
Super User

could you pls provide some sample data?





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

Proud to be a Super User!




@selected_ 

you can do this in PQ

11.PNG

pls see the attachment below





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

Proud to be a Super User!




Thanks but if i gonna show it as table view why it does show dublicate values once I add more column for example terminationdate? how can I fix it ? because I think then the logic stop work like it gonna show latest reviewEndDate but that are earlier than terminationDate but also not older than the previous years reviewEndDate.

 

selected__0-1699648868229.png

 

i think it's because some people rated twic on the same day. 

Since you only have the date value, it return different rating since both are on the max date.

11.PNG





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

Proud to be a Super User!




yes but that's a particular emplpyee, my issue is that it does so with all regardless if some people rated twic on the same day

how can we deal with that scenario? Remove those ratings?





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

Proud to be a Super User!




Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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