Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 6 | |
| 6 | |
| 4 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 24 | |
| 17 | |
| 10 | |
| 7 | |
| 6 |