cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ybarsabal Frequent Visitor
Frequent Visitor

Level of Detail Calculation

How do I achieve the Desired Calculation below (assume this is the entire table)? The calculation would be a sum of [# Students] fixed to the level of [Campus].

 

In Tableau, the calculation would be {FIXED [Campus] : SUM( [# Students] ) }.

 

LOD calc.PNG

6 REPLIES 6
dedelman_clng New Contributor
New Contributor

Re: Level of Detail Calculation

Create a measure:

 

Fixed # = CALCULATE(
	SUM(Table4[#Students]), 
	ALLEXCEPT(Table4, Table4[Campus])
)

fixed.png

 

Hope this helps

David

ybarsabal Frequent Visitor
Frequent Visitor

Re: Level of Detail Calculation

Shoot, I oversimplified my example. So assume that [Campus] and [# Students] are in two different tables (I know that would be unecessary, but play along). The calculation you provided would not work in that case.

dedelman_clng New Contributor
New Contributor

Re: Level of Detail Calculation

How are [Students] and [Campus] related in the model?

 

 

Highlighted
ybarsabal Frequent Visitor
Frequent Visitor

Re: Level of Detail Calculation

Let me start over. Take the single table on the left. How do I count the number of students (fixed per campus) even when the data is being split by grade level? My follow up question is how to do a unique count?

 

LOD calc 2.PNG

dedelman_clng New Contributor
New Contributor

Re: Level of Detail Calculation

For the fixed #, its the same basic code, just using COUNT instead of SUM

 

Fixed # = CALCULATE(
	COUNT(Table4[Student ID]), 
	ALLEXCEPT(Table4, Table4[Campus])
)

What do you mean by "unique count" ?

v-cherch-msft Super Contributor
Super Contributor

Re: Level of Detail Calculation

Hi @ybarsabal

 

Could you tell me if your problem has been solved? If it is,kindly mark the helpful answer as a solution and welcome to share your own solution. More people will benefit from here. If not, please share more details for us so that we could help further on it.

 

Regards,

Cherie

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 278 members 3,343 guests
Please welcome our newest community members: