Forum Discussion

Konrad9090's avatar
Konrad9090
Regular Visitor
2 years ago
Solved

Visualization to show cross projects

Hello PowerBI masters,  I would like to ask you how to solve problem which I found in my task.  I need to create a chart that shows the project and the teams that are working on a specific projec...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi Konrad9090 

    You can refer to the following measure

    Measure =
    VAR a =
        SUMMARIZE (
            ADDCOLUMNS (
                ALLSELECTED ( EmployeeBookings ),
                "Projects", RELATED ( Projects[Name] ),
                "Team", RELATED ( Employees[Team] )
            ),
            [ID Project],
            [Projects],
            [Team]
        )
    VAR b =
        COUNTROWS ( FILTER ( a, [Projects] IN VALUES ( Projects[Name] ) ) )
    RETURN
        IF (
            b > 1,
            COUNTROWS (
                FILTER (
                    a,
                    [Projects]
                        IN VALUES ( Projects[Name] )
                            && [Team] IN VALUES ( Employees[Team] )
                )
            )
        )
    

    Output

     

    Best Regards!

    Yolo Zhu

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