cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
ranaanees Regular Visitor
Regular Visitor

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

Accepted Solutions
SivaMani Senior Member
Senior Member

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

@ranaanees,

 

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

 

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

SivaMani Senior Member
Senior Member

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

Please do refer the below link for the same,

 

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

5 REPLIES 5
ranaanees Regular Visitor
Regular Visitor

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

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

SivaMani Senior Member
Senior Member

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

@ranaanees,

 

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

 

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

Community Support Team
Community Support Team

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

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.
ranaanees Regular Visitor
Regular Visitor

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

@SivaMani you solution is on for Today.

 

But how to select Week to Date (WTD)?

 

thanks

 

SivaMani Senior Member
Senior Member

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

Please do refer the below link for the same,

 

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