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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors
Top Kudoed Authors