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
Anonymous
Not applicable

Capturar cambios de precios

Hola

Tengo los datos a continuación, me gustaría capturar los cambios del precio para cada Parte No:

2020-09-17_23-41-06.png

Me gustaría que el resultado sea como a continuación, capturar el precio cada vez que cambia:

2020-09-17_23-45-10.png

¿Alguien puede ayudar por favor?

10 REPLIES 10
v-diye-msft
Community Support
Community Support

Hola @sabd

puede hacer esto mediante una función fácil:

02.PNG

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.
Anonymous
Not applicable

@v-diye-msft es Ealiest Date una columna calculada? puede compartir el DAX.

Hola @sabd

No escribí DAX, sólo cambié el tipo de agrande el tipo de columna de fecha, lo lograrás.

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.
Anonymous
Not applicable

@v-diye-msft gracias, lo intentaré.

Anonymous
Not applicable

@v-diye-msft , por debajo de 2 tablas son los datos de fila en la tabla 1 y agregados en la tabla 2 para un número de pieza determinado, da el precio único correcto, pero las fechas más tempranas en la tabla 2 son incorrectas, parece que está obteniendo la fecha más temprana independientemente del número de pieza.

También puede aconsejar cómo puedo añadir la suma de los precios distintos, por ejemplo la suma total es 31.23

2020-09-23_9-36-43.png

Ashish_Mathur
Super User
Super User

Hola

Una forma podría ser que en el Editor de consultas, puede seleccionar todas las columnas y, a continuación, haga clic con el botón derecho > Eliminar duplicados.

Espero que esto ayude.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

@Ashish_Mathur, mi informe está conectado al modelo tabular, no puedo usar el editor de consultas.

Gracias por tu comentario de todos modos.

Fowmy
Super User
Super User

@sabd

¿Puede probar esto como una nueva columna a su tabla y comprobar

Column = 

VAR _PRICE = MAXX(FILTER('Table', 'Table'[Part No] = EARLIER('Table'[Part No]) && 'Table'[Date] < EARLIER('Table'[Date])), 'Table'[Pirce])
VAR _PART= MAXX(FILTER('Table', 'Table'[Part No] = EARLIER('Table'[Part No]) && 'Table'[Date] < EARLIER('Table'[Date])), 'Table'[Part No])
VAR CP = [Pirce]

RETURN

IF(           
    [Part No] = _PART ||( _PART=BLANK() && _PART <> BLANK()),
    [Pirce] , 
    BLANK() 
)

________________________

Si mi respuesta fue útil, considere Aceptarla como la solución para ayudar a los otros miembros a encontrarla

Haga clic en el icono Thumbs-Up si le gusta esta respuesta 🙂

Youtube Linkedin

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Anonymous
Not applicable

Thanks @Fowmy , my data source is a tabular model, and the source table is very large, around 4 millions record, so I was trying to avoid adding calcualted column.

 

Is there away to just do it in a measure or measures?

Anonymous
Not applicable

One thing I forgot to menation that date column is from another table, but it is join with the part table.

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