Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

OLE BD - ACCESS BD - Formula to only count today's entries

Hi,

Please could i ask for your help...

I have created a DB, that is updated daily but i need to pull the figures out just from today??

The FX i created doesn't work:

Count({$<[Created]>*(<[Import Date]={0}>)}[Import Date])

Created is a field/measure

Import Date is the Dimension

I will then need to create a FX for 28 days and 90 days.... (+  there will be other fields added later)

Any Ideas??

8 Replies
lakshmikandh
Specialist II
Specialist II

=Count({<[Import Date]={"$(='=' & Date(Today(), 'DateFieldFormatHere') )"}>} [Import Date])

=Count({<[Import Date]={"$(='<=' & Date(Today(), 'DateFieldFormatHere') & '>=' & Date(Today()-28, 'DateFieldFormatHere'))"}>} [Import Date])

=Count({<[Import Date]={"$(='<=' & Date(Today(), 'DateFieldFormatHere') & '>=' & Date(Today()-90, 'DateFieldFormatHere'))"}>} [Import Date])

Reference : Count of records Greater than or Equal to today

Not applicable
Author

Thank You

I have tried the formula's but the count is still counting all of entries

The formula used/tried:

Count({<[Import Date]={"$(='=' & Date(Today(), 'DD/MM/YYYY') )"}>} [Import Date])

and

Count({<[Import Date]={"$(='=' & Date(Today()-7, 'DD/MM/YYYY') )"}>} [Import Date])

I have attached a screen shot of the FX

Any ideas?

Not applicable
Author

Sorry, i forgot to mention that i have created a master calendar, Please find a copy attached (just in case it helps)?

lakshmikandh
Specialist II
Specialist II

stalwar1‌ expert help needed

Gysbert_Wassenaar

What are "Today's entries"?

  1. Those with today as import date?
  2. Those with today as created?
  3. Those with both today as import date and today as created?
  4. Those with either today as import date or today as created?

talk is cheap, supply exceeds demand
Not applicable
Author

Hi,
Today's entries will be from the created field

* I have attached an amended script, just for reference *

Not applicable
Author

The only way i can get a correct customer count is:

count({<Project={"Customer Names"}>*(<DaysAgoImport={0}>)}[Import Date])

using

Today() - Floor([Import Date]) as DaysAgoImport,

sunny_talwar

So all is working now? Are you still need more help here