Forum Discussion

harrinho's avatar
harrinho
Icon for Helper III rankHelper III
8 years ago

Limit data flowing in until a certain date

This is quite complex so I will try to explain it as simple as possible. 

 

The chart below shows weekly utilization.

 

 

I have set my date locally on Tuesday 26 June 2018 deliberately because what I want is to be able to bring in data for the current week only from Wednesday and onwards and not from Sunday when the week starts. 

 

In other words, having set my date to 26th of June (Tuesday) I would like to limit the data reflected on the green bar for the week of 30 Jun in the chart. This line should only be appeared the next day, which would be Wednesday, but until then I wouldn't like BU% (which is the calculated measure that is reflected) to be appeared. 

 

The measure which generates this green column is the following:

 

Billable Util_CDL_WEEK = CALCULATE(SUM('cdl weekly'[Hours]),'TIME CATEGORY'[Time Category All]="Billable")/CALCULATE(SUM('cdl weekly'[Hours]),'TIME CATEGORY'[Time Category All]="Available"))

I tried the following

Billable Util_CDL_WEEK = IF(WEEKDAY(TODAY(),1)<4,"-",CALCULATE(SUM('cdl weekly'[Hours]),'TIME CATEGORY'[Time Category All]="Billable")/CALCULATE(SUM('cdl weekly'[Hours]),'TIME CATEGORY'[Time Category All]="Available"))

but it disappears all previous weeks results which is obviously wrong. 

 

 

Is there any way to manipulate this ?

7 Replies