Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Syndicate_Admin
Administrator
Administrator

Optimización de medidas

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

3 REPLIES 3
Syndicate_Admin
Administrator
Administrator

Hola @yashwant101 es difícil proporcionar una solución adicional y mejor sin modelo, archivo.

Syndicate_Admin
Administrator
Administrator

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

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.