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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
HenryJS
Post Prodigy
Post Prodigy

Count IF Measure

Hi all,

 

How can I create a measure that counts candidate ref if it is not present on a previous application date?

 

 

 

Capture.PNG

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

Hi, @HenryJS 

According to your description, I can roughly understand your requirement, you want to count the newly appeared Candidate Ref that didn’t exist on the last day, right? I think you can try these calculated columns and a measure to achieve this:

This is my test data based on your description and sample data:

v-robertq-msft_0-1620975972931.png

 

  1. Create 2 calculated columns:
Rank = RANKX('Table',[Application Date],,ASC,Dense)
Flag =

var _lastdate=

SELECTCOLUMNS(FILTER(ALL('Table'),[Rank]=EARLIER([Rank])-1),"1",[Candidate Ref])

return

IF(

    [Rank]=1,

    0,

    IF([Candidate Ref] in _lastdate,

    0,1))
  1. Create a measure:
Count IF Measure =

SUM('Table'[Flag] )

 

Then create a card chart to place this measure, and you can get what you want, like this:

v-robertq-msft_1-1620975972977.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

1 REPLY 1
v-robertq-msft
Community Support
Community Support

Hi, @HenryJS 

According to your description, I can roughly understand your requirement, you want to count the newly appeared Candidate Ref that didn’t exist on the last day, right? I think you can try these calculated columns and a measure to achieve this:

This is my test data based on your description and sample data:

v-robertq-msft_0-1620975972931.png

 

  1. Create 2 calculated columns:
Rank = RANKX('Table',[Application Date],,ASC,Dense)
Flag =

var _lastdate=

SELECTCOLUMNS(FILTER(ALL('Table'),[Rank]=EARLIER([Rank])-1),"1",[Candidate Ref])

return

IF(

    [Rank]=1,

    0,

    IF([Candidate Ref] in _lastdate,

    0,1))
  1. Create a measure:
Count IF Measure =

SUM('Table'[Flag] )

 

Then create a card chart to place this measure, and you can get what you want, like this:

v-robertq-msft_1-1620975972977.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.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.