Forum Discussion

Aliwells632's avatar
Aliwells632
Regular Visitor
1 year ago
Solved

Single date in matrix gantt

I have gantt chart using a matrix, it currently shows tasks and there complete dtae range. I know want to add some specific dates in against each task. For example the whole task runs from the 21/03/...
  • Aliwells632's avatar
    Aliwells632
    1 year ago

    So ive put that code, and changed it to the below ive even tried the code on its own. It doesnt return a value of 2. Ive set teh relationship to one to many. 

    Highlight date =
    VAR StartDate =
    CALCULATE(
        MIN('20240529-DCC Task Planner'[Task start date]),
        REMOVEFILTERS(dimDate)
    )
    VAR EndDate =
    CALCULATE(
        MIN('20240529-DCC Task Planner'[Task Finish date]),
        REMOVEFILTERS(dimDate)
    )
    VAR ProjectPeriod =
        MIN(dimDate[Date]) >= StartDate
        && MIN(dimDate[Date]) <= EndDate
    VAR result1 =
    IF(
    ProjectPeriod,
    1)
    VAR AirbidDate =

        CALCULATE(

            MIN('20240529-DCC Task Planner'[Air Bid submission date(Deploy)]),

            REMOVEFILTERS(dimDate)

        )

    VAR AirBid  =

        MIN(dimDate[Date]) = AirbidDate

    VAR result2 =
    IF(
    AirBid,
    2)
     

    VAR FinalResult = result2 + result1
    Return
    FinalResult