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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Syndicate_Admin
Administrator
Administrator

Cantidad de nuevos ID / clientes que se crean / generan después de la fecha de inicio de un rango de fechas.

Hola a todos, sería genial si alguien pudiera ayudarme. Necesito mostrar la cantidad de nuevos identificadores que se generan / crean después de la fecha de inicio de un rango de fechas seleccionado. hasta ahora he hecho esto pero no funciona:

DÓNDE Fecha de inicio = VALOR SELECCIONADO(OpportunityOldValue_NewValue[Changed_Date])
DÓNDE Fecha de finalización = VALOR SELECCIONADO(OpportunityOldValue_NewValue[Changed_Date])
DÓNDE MinOpportunitySID = CALCULAR(MIN(OpportunityOldValue_NewValue[Opportunity_SID]), OpportunityOldValue_NewValue[Changed_Date] >= Fecha de inicio)
DEVOLUCIÓN
CALCULAR(
SUMA(OpportunityOldValue_NewValue[Importe]),
FECHASENTRE(OpportunityOldValue_NewValue[Changed_Date], Fecha de inicio, Fecha de finalización),
OpportunityOldValue_NewValue[Opportunity_SID] > MinOpportunitySID
) - CALCULAR(
SUMA(OpportunityOldValue_NewValue[Importe]),
FILTRO(
OpportunityOldValue_NewValue,
OpportunityOldValue_NewValue[Changed_Date] = Fecha de inicio
)
)

Cualquier ayuda sería realmente apreciada, gracias de antemano.

1 REPLY 1
Syndicate_Admin
Administrator
Administrator

@TEACHY888 ,

Basándome en su descripción, he creado una muestra simple:

vjianbolimsft_0-1683184782644.png

Por favor, intente:

Measure = 
var _a = MINX(ALLSELECTED(OpportunityOldValue_NewValue[Changed_Date]),[Changed_Date])
var _b = MAXX(ALLSELECTED(OpportunityOldValue_NewValue[Changed_Date]),[Changed_Date])
var _c = SELECTCOLUMNS(FILTER(ALL(OpportunityOldValue_NewValue),[Changed_Date]<_a),"ID",[Opportunity_SID])
var _d = FILTER(ALL(OpportunityOldValue_NewValue),[Changed_Date]>=_a&&[Changed_Date]<=_b&&NOT([Opportunity_SID] in _c))
return SUMX(_d,[Amount])

Resultado final:

vjianbolimsft_1-1683184820560.png

Saludos

Jianbo Li

Si esta publicación ayuda, considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.