- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

# Level of Detail Calculation

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

01-16-2019 11:20 AM

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] ) }.

## Re: Level of Detail Calculation

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

01-16-2019 11:37 AM

Create a measure:

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

Hope this helps

David

## Re: Level of Detail Calculation

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

01-16-2019 12:01 PM

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.

## Re: Level of Detail Calculation

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

01-16-2019 12:06 PM

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

## Re: Level of Detail Calculation

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

01-16-2019 12:35 PM

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?

## Re: Level of Detail Calculation

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

01-16-2019 12:45 PM

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" ?

## Re: Level of Detail Calculation

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

01-28-2019 11:14 PM

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

If this post

**helps**, then please consider

**to help the other members find it more quickly.**

*Accept it as the solution*