Forum Discussion
PREVIOUSDAY isn't working... help?
PBIn00b, thanks for reporting it. Your issue can be reproduced and I reported it internally. I will post back once I get any feedback.
- Vicky_Song10 years ago
Impactful Individual
PBIn00b, with the Previous Day Sales = CALCULATE(SUM('table'order_total]),PREVIOUSDAY('ta
ble'[ship_date])) formula, set field under Values from "Date Hierarchy" to "DueDate", then data shows up correctly. Or, you can have the DAX to be similar to:
CALCULATE(SUM('Purchasing PurchaseOrderDetail'[UnitPrice]),PREVIOUSDAY('Purchasing PurchaseOrderDetail'[DueDate].[Date]))
- Leila9 years agoRegular Visitor
Hi
I have the same problem, while niether PREVIOUSDAY nor DATEADD functions work when I want to calculate the SUM(sessions) for a previous period. ( I need this calculation to know the growth rate for day over dayI have searched the whole powerbi community in the last three days, and much to my surprise, it is still unresolved :(
This is my formula : PreDaySessions = CALCULATE(SUM(Visitor[SessionS]), DATEADD(Visitor[Date].[Date], -1 , DAY))
Thanks in andvance,