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
ranaanees
Helper I
Helper I

How to create measure for Sales Today and Week To Date?

Hii,

 

Please help me how to create a measure to show total sales for Today (TOD) and current week to date (WTD) in DAX and Power BI Desktop.

 

TOD = CALCULATE([Total Sales], ???) 

WTD = TOD = CALCULATE([Total Sales], ???) 

 

I have Sales and Date tables. Measures for YTD, QTD, MTD all working fine. 

 

Thanks,

2 ACCEPTED SOLUTIONS
SivaMani
Resident Rockstar
Resident Rockstar

@ranaanees,

 

For today =  CALCULATE([Total Sales],Datefield  = TODAY())

 

For Week to Date - http://radacad.com/week-to-date-calculation-in-power-bi-with-dax

View solution in original post

5 REPLIES 5
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @ranaanees,

 

Have you solved your problem?

 

If you have solved, please accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.

 

If you still need help, please share some data sample and your desired output.

 

Best Regards,

Cherry

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

@SivaMani you solution is on for Today.

 

But how to select Week to Date (WTD)?

 

thanks

 

Please do refer the below link for the same,

 

http://radacad.com/week-to-date-calculation-in-power-bi-with-dax

SivaMani
Resident Rockstar
Resident Rockstar

@ranaanees,

 

For today =  CALCULATE([Total Sales],Datefield  = TODAY())

 

For Week to Date - http://radacad.com/week-to-date-calculation-in-power-bi-with-dax

ranaanees
Helper I
Helper I

I need is without slicer. Will display in a Card on Dashboard along with YTD, QTD, MTD.

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.