Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Timeline Calculaction

Hi to All, I am workinng on a dashboard where i need timeline My total working day in a month 25 Passed day in a month 24 (excludes weekend and holidays) as per Today Timeline =96% what i want i...
  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi Anonymous ,

     

    Please create these calculated columns.

    Month = 
    MONTH ( 'Table'[Date] )
    WorkDay = 
    IF ( WEEKDAY ( 'Table'[Date], 2 ) = 7 , 0, 1 )
    TotalWorkingDay = 
    25
    DayPassed = 
    COUNTX (
        FILTER (
            'Table',
            'Table'[WorkDay] = 1
                && 'Table'[Month] = EARLIER ( 'Table'[Month] )
                && 'Table'[Date] <= EARLIER ( 'Table'[Date] )
        ),
        'Table'[Date]
    )
    DayRemain = 
    'Table'[TotalWorkingDay] - 'Table'[DayPassed] + 1
    Timeline% = 
    DIVIDE ( 'Table'[DayPassed], 'Table'[TotalWorkingDay] )

    The PBIX file is attached for reference.

     

    Best Regards,
    Gao

    Community Support Team

     

    If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

    How to get your questions answered quickly -- How to provide sample data