Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and a 50 percent discount on exams.
Get startedEarn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hola a todos
He creado 3 medidas, una dependiente de la otra. A continuación se detallan las medidas:
Último estado HCP =
VAR _MaxDt = CALCULAR(MAX(rpt_fbp_cust_list_hcp1[txn_dt]), ALL(rpt_fbp_cust_list_hcp1[ptnt_stat]))
VAR _MaxStat = CALCULATE(MAX(rpt_fbp_cust_list_hcp1[ptnt_stat]), rpt_fbp_cust_list_hcp1[txn_dt]=_MaxDt,rpt_fbp_cust_list_hcp1[ptnt_id]<>BLANK() && rpt_fbp_cust_list_hcp1[ptnt_stat]<>BLANK())
DEVOLUCIÓN
_MaxStat
Paciente activo HCP =
CALCULATE(DISTINCTCOUNT(rpt_fbp_cust_list_hcp1[ptnt_id]),FILTER(SUMMARIZE(rpt_fbp_cust_list_hcp1,rpt_fbp_cust_list_hcp1[ptnt_id],"last status",[Last Status HCP]),[last status]="ACTIVE"))
PantheRx Pacientes activos HCP = CALCULATE([Paciente activo HCP], ALL(rpt_fbp_cust_list_hcp1[txn_dt]), rpt_fbp_cust_list_hcp1[txn_dt]<=MAX(rpt_fbp_cust_list_hcp1[txn_dt]), ALL(rpt_fbp_cust_list_hcp1[Ordenar la fecha de fin de mes]), ALL(rpt_fbp_cust_list_hcp1[Fin de mes]))
Estoy usando la medida final en mi tabla. Sin esta medida, la mesa funciona sin problemas. Pero tan pronto como pongo esta medida sobre la mesa, se vuelve muy lenta. Por favor, hágame saber cómo puedo optimizar estas medidas.
¡Cualquier ayuda es muy apreciada!
Dice,
Yashwant
Hola @yashwant101 es difícil proporcionar una solución adicional y mejor sin modelo, archivo.
Hola @yashwant101 probar la nueva versión para el profesional de la salud de pacientes activos
Paciente activo HCP=
VAR __table=
FILTER(SUMMARIZE(rpt_fbp_cust_list_hcp1,rpt_fbp_cust_list_hcp1[ptnt_id],
"last status",[Last Status HCP]),[last status]="ACTIVE")
DEVOLUCIÓN
CALCULAR(DISTINCTCOUNT(rpt_fbp_cust_list_hcp1[ptnt_id]),
__table))
Hola @some_bih ,
¡Gracias por tu respuesta!
Probé la medida que me proporcionaste, pero aún así está tomando mucho tiempo, de hecho el tiempo aumentó. Y como he dicho, la última medida está llevando mucho tiempo. Por favor, hágame saber si hay alguna manera de reducir el tiempo allí.
Saludos
Yashwant