Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
zuzaza
Contributor
Contributor

exclude weekends and public holiday

Hi,

I have requirements. I already did Sum({$<Time = {">$(=('11:00'))<=$(=('12:00'))"},Time = {">$(=('14:00'))<=$(=('17:00'))"}>}[ Total kwh]) but I want to exclude saturday,sunday(weekends) and public holidays. The example data that I have is mostly like this: 

Date                Time          Total Kwh

1/6/2017         0:30            6000

2/6/2017         1:00             6000

.

.

.

.

.

But, I still get no result with my expression. 

Thanks in advance!

3 Replies
bramkn
Partner - Specialist
Partner - Specialist

create a flag in the script to determine what dates you want and do not want. and use that flag as a field in the set analysis. Also using Time=,Time= Will not work as far as I know. put all the expressions within one Time= in the set analysis.
Channa
Specialist III
Specialist III

only week ends you can do if you want to add public holidays add flag to ur database

 

Channa