Forum Discussion

Batman_powerbi's avatar
Batman_powerbi
Frequent Visitor
1 year ago
Solved

% of Role Utilisation per project

Hi All   need some help. maybe i am looking into it too much but been struggling to come up with a calculation correctly   below is sample data, my main data source has approx 15 different column...
  • rajendraongole1's avatar
    rajendraongole1
    1 year ago

    Hi Batman_powerbi -can you please create below measures:

     

    DistinctProjectsPerRole = DISTINCTCOUNT(prodj[PROJECT])
     
    Total number of projects:
    TotalProjects = CALCULATE(DISTINCTCOUNT(prodj[PROJECT]), ALL(prodj))
     
    %allocation measure as below:
    PercentAllocation = DIVIDE([DistinctProjectsPerRole], [TotalProjects])
     

     

    Hope this helps. Please check.