Use the following formula
Standard Deviation =
var grouped_table = SUMMARIZE('Table','Table'[Month],"Distinct Count",DISTINCTCOUNT('Table'[ID]))
var st_dev = STDEVX.P(grouped_table,[Distinct Count])
return(st_dev)
If u want to know more about Power BI, one of the powerful BI tools, then join the Power Bi course