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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
tylesftw
Helper II
Helper II

Ventas acumuladas - Conseguir que la línea de ventas se detenga

Hola a todos

Se me ha dado un conjunto de datos que tiene Ventas y pronóstico en un conjunto de datos. Esto significa que el código siguiente no funciona ya que extiende la línea de ventas para que coincida con los meses FY2020. Sin duplicar el conjunto de datos y eliminar Sales & Forecast en datos independientes, ¿hay alguna manera de solucionar esto rápidamente?

Cumulative.PNG

Reales acumulados ?
VAR LastSalesDate - CALCULATE( MAX( 'Report Data'[Time] ), ALL( 'Report Data') )
devolución
IF( SELECTEDVALUE( 'Date'[Date]) > LastSalesDate, BLANK(),
CALCULATE( [Ventas totales] ,
FILTRO( ALLSELECTED( 'Fecha'),
'Fecha'[Fecha] <-MAX( 'Fecha'[Fecha] ) )))
Gracias
Rob
7 REPLIES 7
v-jayw-msft
Community Support
Community Support

Hola @tylesftw ,

¿Cuál es tu columna Axis?

Intente crear una medida como

If(selectedvalue(axis column)<=maxx(all(table),reportdate),1,0)

A continuación, agregue la medida a la medida del filtro visual es 1.

Saludos

Jay

Equipo de apoyo a la comunidad _ Jay Wang

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

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

Hola @tylesftw ,

¿Se ha resuelto su problema?

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

Lo he aparcado por el momento.. gracias por su ayuda a todos

mahoneypat
Employee
Employee

Podría agregar otro IF() en su retorno de tal manera que si min('Date'[Date]) es mayor que su variable lastsalesdate para devolver blank(), de lo contrario su cálculo.

Si esto funciona para usted, márquelo como solución. Los elogios también son apreciados. Por favor, avísame si no.

saludos

palmadita





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


hmmmm 😞

amitchandak
Super User
Super User

@tylesftw ,La información que ha proporcionado no está despejar el problema para mí. Por favor, puede explicar con un ejemplo.

Apreciamos tus Felicitaciones.

He añadido la visualización.. esencialmente los datos se ven como

Tiempo de tiempo ? Ventas ? Pronóstico

Enero ( Jan) $2$00 ? $200

.

.

Abril ? 0 ? $30

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors