Forum Discussion

rachellek's avatar
rachellek
Frequent Visitor
4 years ago

Divide a row by a column total

I am trying to calculate the percentage completed of the total population within the year. 

 

I want to be able to report % completed within each year. 

So 2020 should show 1069/1902 = 56%, and 2021 should show 697/1902 = 37%.

 

This is based off a single table which essentially looks like:

 

I have tried to count the ID's using this formula:

id_count = calculate(DISTINCTCOUNT('Table'[ID]),ALL('Table'[Completed]))

But it still divvies it up by year in the table.

1 Reply

  • rachellek , Try a measure like

    % = divide(calculate(DISTINCTCOUNT('Table'[ID]),filter('Table', not(Isblank('Table'[Completed])))), DISTINCTCOUNT('Table'[ID]))