Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
I need see the number of stores open on a given day. I have an opendate column, a closeddate column (the closeddate will be blank if the store is still open) and a store number. I also have a dim_date table with all dates. What is the best way to see on any given day how many stores are open? I'm assuming a DATESBETWEEN of somekind, but I can't figure it out.
-Thanks
Buddy
Solved! Go to Solution.
create a measure like
Measure =
VAR CurrentDate = MAX(CalendarTable[Date])
RETURN
CALCULATE(COUNTROWS('Stores Table'), FILTER('Stores Table', 'Stores Table'[Open Date] <= CurrentDate && ('Stores Table'[Close Date] >= CurrentDate || ISBLANK('Stores Table'[Close Date]) ) )
create a measure like
Measure =
VAR CurrentDate = MAX(CalendarTable[Date])
RETURN
CALCULATE(COUNTROWS('Stores Table'), FILTER('Stores Table', 'Stores Table'[Open Date] <= CurrentDate && ('Stores Table'[Close Date] >= CurrentDate || ISBLANK('Stores Table'[Close Date]) ) )
User | Count |
---|---|
12 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
25 | |
19 | |
14 | |
10 | |
7 |