In power bi, I am trying to build a formula for frequency encounter
I am trying to add IF Statement to the formula, which is the calculated column "Time frame" which shows the duration of the item in minutes.
The formula should be run only when the "Time frame" is equal or bigger than 1
The formula is:
Calculated column =
Var freqcount =
COUNTAX(FILTER(ALL('Count'),
AND([Date]>=DATEADD('Count'[Date],-6,DAY)&&[Date]<=EARLIER([Date]),[ID]=EARLIER('Count'[ID]))),ID])
return
if(freqcount>=4,"Daily",if(freqcount>=2,"Weekly",if(freqcount>=1,"First time","Inactive")))