calculate(countrows( "with a time"

gmazza76

Well-known Member
Joined
Mar 19, 2011
Messages
769
Office Version
  1. 365
Platform
  1. Windows
Good afternoon,

I am trying to use current and past data to check call volumes between a set time frame and am having an issue as follows.

I can get the volumes from my data as per the DAX formula below per day, but I have now been asked to include a to and from time.
The formula from today is looking at the Monday of the current week which is great, but I am unsure how I would include the time part of the query.
My [Date] format is "13/12/2020 23:58:54" and I am unsure how to include the last part. I have seen time as "TIME(08,00,00)" but need some pointing in the right direction

=CALCULATE(COUNTROWS(Data),filter(Data,Data[CallType]=All_Data[CallType]),All_Data[Date]=today()-WEEKDAY(TODAY(),3))

thanks in advance
Gavin
 
I get the same error again with the formula above, but what is the difference wit the "calculate(countrows(" and "CALCULATE(COUNTROWS(All_Data),filter"
 
Upvote 0

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Can you post your file somewhere and add a link here to it?

The syntax I posted works fine for me. (You don't need filter since calculate allows filters anyway)
 
Upvote 0

Forum statistics

Threads
1,223,753
Messages
6,174,307
Members
452,554
Latest member
Louis1225

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