Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

need MTD calculation help

Hi,

I am using the below set analysis for my MTD calculation at straight table:

[Order Date]={"$(='>=' & Date(MonthStart(Max([Order Date])), 'MM/DD/YYYY') & '<=' & Date(Max([Order Date]), 'MM/DD/YYYY'))"}>}Sales)

but it gives me wrong result and in the below screenshots you can see that: Ideally it should show all the order date in the table, but it only show the last year's date in the 'Order Date' column.Also the MTD value should be start date of the Order Date's month to the corresponding Order date, but the value in MTD column is wrong here.

Also I am attaching my demo QVW for reference.

2 Replies
sunny_talwar

May be this

Sum({$<[Order Date]={">=$(=Date(MonthStart(Max([Order Date]))))<=$(=Max([Order Date]))"}>}[Sales])

rahulpawarb
Specialist III
Specialist III