Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
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.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Ask questions in Eventhouse and KQL, Eventstream, and Reflex.
User | Count |
---|---|
85 | |
83 | |
66 | |
61 | |
59 |
User | Count |
---|---|
194 | |
111 | |
105 | |
79 | |
71 |