Showing results for 
Search instead for 
Did you mean: 
Not applicable

Divide by row in DAX


I would like help writing a DAX measure to divide by each row. 

I want to know what % of students did not submit an assignment. 
The issue comes in because we need to group the data by "Area" and "Term". 
There are two "Terms" either Fall 2020 or Fall 2021. 

Fortunately, there is a "% No Subs" calc column that gives a guideline of what I need the answers to look like. 

Please see table below for an example: 


There is a calculated column called "% No Subs". 
That was calculated by dividing #! Submitted by Max Enrol. 
However, I would like to create a measure that does this exact thing because measures are better than calc columns. 

Here is what I have tried: 

Rate =
SUMMARIZE('No Submissions Data','No Submissions Data'[Area],"Rate",SUMX (
'No Submissions Data',
DIVIDE('No Submissions Data'[# ! Submitted],'No Submissions Data'[Max Enrol])
Difference =
VAR f20 = CALCULATE('No Submissions Data'[No Submissions Rate],'No Submissions Data'[Term] = "Fall 2020")


VAR f21 = CALCULATE('No Submissions Data'[No Submissions Rate],'No Submissions Data'[Term] = "Fall 2021")


F21 - F20
Continued Contributor
Continued Contributor

If you put Area and Term on the rows with the measure that @PaulOlding provide will work.
If it doesn't give you the result you are expecting, you'll need to provide us with more information. 
Example of the calculation, example of visual ...

Super User
Super User



How about...

Rate =
VAR _NoSub = SUM('No Submissions Data'[# ! Submitted])

VAR _Enrol = SUM( 'No Submissions Data'[Max Enrol])


DIVIDE(_NoSub, _Enrol)

Not applicable

Hi Paul, 

That won't give an accurate result. 

Each area has a different denominator (Max Enrol). 
Dividing by the total sum is will give the wrong answer to the question at hand. 

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