Forum Discussion
aarikc17
Advocate I
8 years agoPrevious INPUTED Date Count
I am trying to count the rows in a table that contain the previous INPUTED date (sometimes there are weekend dates, and sometimes there isn't). A normal previous date function would work for Tues...
Anonymous
8 years agoNot applicable
Hi aarikc17,
Please provide more detailed information to help use clarify your requirement.
For instance:
Sample data, screenshots, calculate steps,...
Regards,
Xiaoxin Sheng
- aarikc178 years ago
Advocate I
Date of Report Ran 9/18/2017 Units Start Date Units Started Previous Day 8 Widget1 9/16/2017 Widget2 9/16/2017 Widget3 9/16/2017 Widget4 9/16/2017 Widget5 9/16/2017 Widget6 9/16/2017 Widget7 9/16/2017 Widget8 9/16/2017 Date of Report Ran 9/19/2017 Units Start Date Units Started Previous Day 9 Widget1 9/18/2017 Widget2 9/18/2017 Widget3 9/18/2017 Widget4 9/18/2017 Widget5 9/18/2017 Widget6 9/18/2017 Widget7 9/18/2017 Widget8 9/18/2017 Widget9 9/18/2017 - aarikc178 years ago
Advocate I
- Anonymous8 years agoNot applicable
Hi aarikc17,
For your scenario, I think you can try to find out the last date, then use it to filter and calculate the related records.
Sample measure= var checkdate=Today() var last_date=MAXX(FILTER(ALL('Table'),[Date]<checkdate),[Date]) return COUNTROWS(FILTER(ALL('Table'),[Date]=last_date))Regards,
Xiaoxin sheng
- aarikc178 years ago
Advocate I
Anonymous
Manually filtering a date for multiple tiles is not an option. I need to "hard code" the previous dates from production.
I would think it would be easier to tell MS BI to "Look at today, and find the first previous date"