Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

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.

Super User
Super User

@rachellek , Try a measure like

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

Helpful resources

PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors
Top Kudoed Authors