Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Dynamic Calculated Value Based on Two Slicers

What I have:   PROJECT WORKERS A Alan A Bary A Coen A Dani A Earl B Ford B Gail B Herb C Iago C John   What I need: --- Making a "Project ...
  • v-yanjiang-msft's avatar
    3 years ago

    Hi Anonymous ,

    According to your description, I'm afraid it can't be achieved in a single table, as Power BI can't distinguash the same column in two seperate slicers. Here's my solution.

    1.In Power Query, right-click the table and select Duplicate to create a duplicate table. The two tables should have not relationship in data model.

    2.Create a measure.

    Measure =
    DIVIDE ( COUNT ( 'Table (2)'[WORKERS] ), COUNT ( 'Table'[WORKERS] ) )
    

    3.Then put PROJECT columns from the two tables to seperate slicers, put WORKERS columns from two tables to seperate card visuals and select Count in the fileds pane, then put the measure in a card visual, get the result.

    I attach my sample below for your reference.

     

    Best Regards,
    Community Support Team _ kalyj

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