Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I have a table with a daily YTD sales snapshot (by area and sales person).
I need to calculate the daily pickup i.e. today YTD sales - yesterday YTD sales.
Thx in advance
HI abaklezos,
Try DAX like this pattern:
Daily Pick Up =
CALCULATE ( Table[YTD Sales], Table[Date] = TODAY () )
- CALCULATE (
Tables[YTD Sales],
Table[Date]
= DATE ( YEAR ( TODAY () ), MONTH ( TODAY () ), DAY ( TODAY () ) - 1 )
)Regards,
Jimmy Tao
Hi v-yuta-msft
and many thx for your reply.
It does not work as it is.
My table has the following structure
SalesDate, SalesPerson, Region, Amount
We would like to add another column PreDateAmount for the sales of previous date in order to estimate the pickup by Date, Period, SalesPerson, Region etc.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 46 | |
| 42 | |
| 23 | |
| 18 |
| User | Count |
|---|---|
| 193 | |
| 123 | |
| 99 | |
| 67 | |
| 49 |