Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi Everyone,
I am trying to create a calculated column to flag the number of duplicates, where if the patient "[NHS_Number_Nat_Pseud]"
has called "[EMAS Call Connect Date]" more than 5 times within a month, I have created the following but to no success
Any help on this would be much appricated
Thanks
Nagin
Solved! Go to Solution.
Hi @Nagin
please try
EMAS Reattendance Month =
VAR CurrentMonth =
MONTH ( EMAS[EMAS Call Connect Date] )
VAR CurrentYear =
YEAR ( EMAS[EMAS Call Connect Date] )
VAR CurrentIDtable =
CALCULATETABLE ( EMAS, ALLEXCEPT ( EMAS, EMAS[NHS_Number_Nat_Pseud] ) )
VAR FilteredTable =
FILTER (
CurrentIDtable,
EMAS[NHS_Number_Nat_Pseud] <> BLANK ()
&& MONTH ( EMAS[NHS_Number_Nat_Pseud] ) = CurrentMonth
&& YEAR ( EMAS[NHS_Number_Nat_Pseud] ) = CurrentYear
)
RETURN
IF ( COUNTROWS ( FilteredTable ) > 5, "Yes", "No" )
@Nagin
Great to hear that!
Kindly conisder marking my reply as acceptable solution
Hi @Nagin
please try
EMAS Reattendance Month =
VAR CurrentMonth =
MONTH ( EMAS[EMAS Call Connect Date] )
VAR CurrentYear =
YEAR ( EMAS[EMAS Call Connect Date] )
VAR CurrentIDtable =
CALCULATETABLE ( EMAS, ALLEXCEPT ( EMAS, EMAS[NHS_Number_Nat_Pseud] ) )
VAR FilteredTable =
FILTER (
CurrentIDtable,
EMAS[NHS_Number_Nat_Pseud] <> BLANK ()
&& MONTH ( EMAS[NHS_Number_Nat_Pseud] ) = CurrentMonth
&& YEAR ( EMAS[NHS_Number_Nat_Pseud] ) = CurrentYear
)
RETURN
IF ( COUNTROWS ( FilteredTable ) > 5, "Yes", "No" )
@Nagin
Great to hear that!
Kindly conisder marking my reply as acceptable solution
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
7 | |
5 | |
4 | |
3 |
User | Count |
---|---|
12 | |
12 | |
11 | |
10 | |
9 |