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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
abaklezos
Frequent Visitor

Daily Pickup on a snapshot table

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

2 REPLIES 2
v-yuta-msft
Community Support
Community Support

 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.

 

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.