Hello ,
In short, I am trying to develop a BI application using the tool SQL SERVER 2012 .
The everything went well and properly.
I described my problem:
The BI application is developed for an industrial company . The work is on 3 Part times ( Morning , Afternoon , Night ) .
The dates in the table "Date" are integers (for EXP ' 2015-07-22 ' will be 20,150,722 ) for performance reasons ( Loading data ... )
Also the hours are converted in enteger ( for example : id = 1 returns to time : 0h-1h , who is on Night post) .
==> Morning 06h to 14h
==> Afternoon 14hh to 22h
==> Night from 22h to 06h
The problem is how to calculate such a measure in the Night post.
The answer is clear : SUM of two dates, the first from 22h to 00h
and the second from 01h to 06 h . but how ???????
In SSAS , you can not filter twice.
Please I need help.
Thank You