Excel DAX question on Quarter to date sales.

shophoney

Active Member
Joined
Jun 16, 2014
Messages
286
Hi, I've created a dCalendar in Excel with all the dates for several years. I can pull the slicer and use it in my pivot tables.

I can select the date, month, year... But for the QTR our year starts Feb 1.

So I need QTR to date sales. That would be 4th QTR today all sales from Nov 1 to today.

I've created a sort column using month -1 so we would be in the 11th month of the year and the 4th QTR.

CURRENT QTD
=if(dCalendar[DATES]<=today(),IF(dCalendar[QTR FINANCIAL]=dCalendar[QTR FINANCIAL],"CURRENT QTR",""))

SORT
=IF(MONTH([DATES])-1=0,12,(MONTH([DATES])-1))

CURRENT QTR
=if(dCalendar[DATES]<=today()&&dCalendar[DATE QTR]=dCalendar[QTR FINANCIAL],"CURRENT QTR","OTHER")

QTR FINANCIAL
=roundup(if(dCalendar[SORT]>3,dCalendar[SORT]/3,1),0)



My goal is to create a slicer for Quarter to date.

Thanks
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.

Forum statistics

Threads
1,224,814
Messages
6,181,130
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top