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.
Gracias a otro post, pude averiguar cómo obtener un recuento de los miembros que visitaron por primera vez en el intervalo de fechas seleccionado.
Ahora, estoy buscando comparar ese conteo con el número de visitantes por primera vez del año anterior.
Esperaba que fuera fácil simplemente poner un DATEADD en el VAR currentDate, pero me encuentro con errores de sintaxis.
¿Alguien tiene alguna idea sobre cómo conseguir los visitantes por primera vez del año pasado?
Este es el DAX para recuperar el recuento actual:
(fact_branch_checkin_inc tiene todos los registros de visitas 9.2B con el durable_member_key)
New visitors LY =
VAR currentMembers = VALUES(fact_branch_checkin_inc[durable_member_key])
VAR currentDate = MIN(dim_date[full_date])
VAR pastMembers = CALCULATETABLE(VALUES(fact_branch_checkin_inc[durable_member_key]),
ALL(dim_date[full_date].[Month],dim_date[full_date].[MonthNo],dim_date[full_date].[Year])
, dim_date[full_date]< currentDate)
VAR newCustomers = EXCEPT(currentMembers,pastMembers)
RETURN COUNTROWS(newCustomers)
Gracias de antemano!
Solved! Go to Solution.
primera vez significa, la persona no vino el año pasado ?
Nuevo cliente es el que estás buscando
YTD = calculate([Sales],datesytd('Date'[Date]))
LYTD = calculate([Sales],DATESYTD(DATEADD('Date'[Date],-1,MONTH)))
Lost Customer= Sumx(VALUES(Customer[Customer Id]),if(ISBLANK([MTD]) && not(ISBLANK([LMTD])) , 1,BLANK()))
Nuevo cliente = sumx(VALUES(Customer[Customer Id]), if(ISBLANK([LMTD]) && not(ISBLANK([MTD])) ,1,BLANK()))
Cliente retenido = if(not(ISBLANK([MTD])) && not(ISBLANK([LMTD])) , 1,BLANK())
También consulte si es necesario
Retención de clientes Parte 1:
https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-1-Month-on-Month-Retention/b...
Retención de clientes Parte 2: Retención de período a período:https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-2-Period-over-Period-Retenti...
¡Gracias!
primera vez significa, la persona no vino el año pasado ?
Nuevo cliente es el que estás buscando
YTD = calculate([Sales],datesytd('Date'[Date]))
LYTD = calculate([Sales],DATESYTD(DATEADD('Date'[Date],-1,MONTH)))
Lost Customer= Sumx(VALUES(Customer[Customer Id]),if(ISBLANK([MTD]) && not(ISBLANK([LMTD])) , 1,BLANK()))
Nuevo cliente = sumx(VALUES(Customer[Customer Id]), if(ISBLANK([LMTD]) && not(ISBLANK([MTD])) ,1,BLANK()))
Cliente retenido = if(not(ISBLANK([MTD])) && not(ISBLANK([LMTD])) , 1,BLANK())
También consulte si es necesario
Retención de clientes Parte 1:
https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-1-Month-on-Month-Retention/b...
Retención de clientes Parte 2: Retención de período a período:https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-2-Period-over-Period-Retenti...
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 |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |
User | Count |
---|---|
2 | |
2 | |
2 | |
2 | |
1 |