Forum Discussion

draxicle1's avatar
draxicle1
Icon for Helper I rankHelper I
2 years ago
Solved

Measure for Start and End Dates - Days Assigned Graph

Dear PBI community,   I have a Power Bi Measure question which I have seen called the “Events in Progress” problem. I've researched and tried to adapt various solutions I've found on this, but none...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi draxicle1 

     

    Try the following measure

    Measure = 
    SUMX(
        CalendarTable,
        CALCULATE(
            COUNTROWS(P6_Planned),
            FILTER(
                P6_Planned,
                P6_Planned[Start] <= CalendarTable[Date]
                && P6_Planned[Finish] >= CalendarTable[Date]
            )
        )
    )

     

    This is the result you want

     

     

    Best Regards,

    Jayleny

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.