Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
47 | |
26 | |
19 | |
14 | |
10 |
User | Count |
---|---|
58 | |
50 | |
44 | |
19 | |
19 |