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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
HenryJS
Post Prodigy
Post Prodigy

Highlight first instance

Hi all,

 

How can I highlight the first instance 'Candidate Ref' appears?

 

A new column denoting the earliest date Candidate Ref appears.

 

 

Capture.PNG

1 ACCEPTED SOLUTION
v-robertq-msft
Community Support
Community Support

Hi, @HenryJS 

According to your description, I can roughly understand your requirement, do you mean that you want to create a new column to get the first date that the Candidate Ref appears for each Candidate Ref, you can try this calculated column:

First date =

CALCULATE(MIN('Table'[Application Date]),FILTER(ALL('Table'),[Candidate Ref]=EARLIER('Table'[Candidate Ref])))

 

And you can get what you want, like this:

v-robertq-msft_0-1623727964640.png

 

You can download my test pbix file below

 

If this result is not what you want, you can post some sample data(without sensitive data) and your expected result.

How to Get Your Question Answered Quickly 

Thank you very much!

 

Best Regards,

Community Support Team _Robert Qin

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

3 REPLIES 3
v-robertq-msft
Community Support
Community Support

Hi, @HenryJS 

According to your description, I can roughly understand your requirement, do you mean that you want to create a new column to get the first date that the Candidate Ref appears for each Candidate Ref, you can try this calculated column:

First date =

CALCULATE(MIN('Table'[Application Date]),FILTER(ALL('Table'),[Candidate Ref]=EARLIER('Table'[Candidate Ref])))

 

And you can get what you want, like this:

v-robertq-msft_0-1623727964640.png

 

You can download my test pbix file below

 

If this result is not what you want, you can post some sample data(without sensitive data) and your expected result.

How to Get Your Question Answered Quickly 

Thank you very much!

 

Best Regards,

Community Support Team _Robert Qin

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

amitchandak
Super User
Super User

@HenryJS , Create a color measure like this and use that in conditional formatting using field value option

 

measure =
var _min = calculate(min(Table[application Date]), filter(allselected(Table), table[candidate_ID] = max(table[candidate_ID])))
return
if(max(table[candidate_ID]) =_min, "red", "white")

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak  sorry I meant a new column which denotes the first instance, so a 1 if it is the first instance 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors