Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi all,
How can I create a measure that counts candidate ref if it is not present on a previous application date?
Solved! Go to Solution.
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:
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))
Count IF Measure =
SUM('Table'[Flag] )
Then create a card chart to place this measure, and you can get what you want, like this:
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.
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:
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))
Count IF Measure =
SUM('Table'[Flag] )
Then create a card chart to place this measure, and you can get what you want, like this:
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.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 57 | |
| 34 | |
| 33 | |
| 18 | |
| 16 |
| User | Count |
|---|---|
| 67 | |
| 65 | |
| 44 | |
| 30 | |
| 28 |