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

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.

Reply
Anonymous
Not applicable

Medida - rodar un día sin incluir el primer día

Hola

Tratando de crear un costo de 1 día para mostrar la diferencia en el costo de ayer, pero mi medida está incluyendo el primer día;

Costo menos el día anterior ? SUM('UsageDetails'[Cost]) - [día anterior]

Así que el primer día de mes el costo fue de 712 libras esterlinas en mi [día anterior] su blanco - pero la medida tiene 712 libras en la fila en lugar de 0

1 ACCEPTED SOLUTION

@AndyM12

Puede intentar utilizar ISBLANK.

https://community.powerbi.com/t5/Desktop/Calculating-difference-between-ROWS/m-p/192754#M84843

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

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@AndyM12 , Consulte si estas fórmulas del último día pueden ayudar

Last Day Non Continous ? CALCULATE(sum('order'[Qty]),filter(all(Table),Table[Date] ?MAXX(FILTER(all(Table),Table[Date]<max(Table[Date])),Table[Date])))
Día detrás de las Ventas: CALCULATE(SUM(Sales[Sales Amount]),dateadd(Table[Date],-1,Day))

Para obtener lo mejor de la función de inteligencia de tiempo. Asegúrese de que tiene un calendario de fechas y se ha marcado como la fecha en la vista de modelo. Además, únase a él con la columna de fecha de su hecho/s. Consulte:
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi
https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/

Anonymous
Not applicable

No conseguimos encontrar tu ubicación exacta. En cambio, probablemente no lo he hecho de la mejor manera

día en blanco si (SUM(UsageDetails[Cost]) á [Coste menos el día anterior], 0 , SUM('UsageDetails'[Cost]) - [día anterior]) el único problema con esto es si las fechas no se ejecutan en orden, crearé una tabla de calendario independiente.

@AndyM12

Puede intentar utilizar ISBLANK.

https://community.powerbi.com/t5/Desktop/Calculating-difference-between-ROWS/m-p/192754#M84843

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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