Forum Discussion

PiccinelliSte's avatar
PiccinelliSte
Regular Visitor
6 years ago
Solved

Dynamic filtering+calculation

Hello, I am trying to migrate some functionalities from a Python code to PowerBI. So far the idea was to keep data cleaning in Python and migrate the visualisation and allow dynamic filtering and da...
  • jeroenterheerdt's avatar
    jeroenterheerdt
    6 years ago

    That helped a lot. I was able to replicate your scenario. I named the table with the projects just `Projects`.

     

    This is the measure that does what you need:

    Value% = 
    DIVIDE(
        SUM(Projects[Value]),
        SUMX(
            ALLSELECTED(Projects),
            Projects[Value])
    )
     
    Please let me know and mark as solution if I was able to help you.