cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
daominhtri Frequent Visitor
Frequent Visitor

Create WorkingdayID column

Hi all,

Pls help me to create a WorkingdayID1 or WorkingdayID2 column as below.Capture.PNG

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
Super User
Super User

Re: Create WorkingdayID column

Hi @daominhtri

 

Try this for your column:

 

WorkingDayID2 =
COUNTROWS (
    FILTER (
        Table1;
        Table1[Date] <= EARLIER ( Table1[Date] ) && Table1[DayType] = "Workingday"
    )
)

 

itsmebvamsi Regular Visitor
Regular Visitor

Re: Create WorkingdayID column

@daominhtri  Create following calculation columns. Please see the attached file for your reference.

 

Working Day ID1:
 
Working Day ID1 = 
COUNTROWS (
    FILTER (
        Sheet1,
        Sheet1[Date] <= EARLIER ( Sheet1[Date] ) && Sheet1[Type] = "Working"
    )
)
Working Day ID2:
 
Working Day ID2 = IF(Sheet1[Type]="Working",Sheet1[Working Day ID1],BLANK())

 

 

 Capture.PNG

3 REPLIES 3
Super User
Super User

Re: Create WorkingdayID column

Hi @daominhtri

 

Try this for your column:

 

WorkingDayID2 =
COUNTROWS (
    FILTER (
        Table1;
        Table1[Date] <= EARLIER ( Table1[Date] ) && Table1[DayType] = "Workingday"
    )
)

 

itsmebvamsi Regular Visitor
Regular Visitor

Re: Create WorkingdayID column

@daominhtri  Create following calculation columns. Please see the attached file for your reference.

 

Working Day ID1:
 
Working Day ID1 = 
COUNTROWS (
    FILTER (
        Sheet1,
        Sheet1[Date] <= EARLIER ( Sheet1[Date] ) && Sheet1[Type] = "Working"
    )
)
Working Day ID2:
 
Working Day ID2 = IF(Sheet1[Type]="Working",Sheet1[Working Day ID1],BLANK())

 

 

 Capture.PNG

daominhtri Frequent Visitor
Frequent Visitor

Re: Create WorkingdayID column

Thank you @itsmebvamsi , @AlB for your help.