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

How can I create a measure that gives me the totals of a set of values that are being filtered?

Hello,

 

Is there a way to write a measure that would be the total of a specific field of data without its filter and without removing that filter, that is currently filtered? (sorry if that was confusing)

 

For example please see below.

 

dillontoramall_0-1620231632107.png

 

The values in PercentRespTestNumerator are correct. However, I need all the values in New Denominator to equal the total of 674.75, 161 and 887. In that way, my other line (not shown) can calculate 674.75/sum , 161/sum, 887/sum, to give me a percentage.

 

Is this a way to do this? Thanks in advance.

 

1 ACCEPTED SOLUTION
v-stephen-msft
Community Support
Community Support

Hi @dillontoramall ,

 

I think you might want use ALLEXCEPT function or ALL function.

 

Here's a simple sample.

ALL function = CALCULATE(SUM('Table'[Value]),ALL('Table'))
ALLEXCEPT function = CALCULATE(SUM('Table'[Value]),ALLEXCEPT('Table','Table'[User]))

15.png

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

View solution in original post

3 REPLIES 3
v-stephen-msft
Community Support
Community Support

Hi @dillontoramall ,

 

I think you might want use ALLEXCEPT function or ALL function.

 

Here's a simple sample.

ALL function = CALCULATE(SUM('Table'[Value]),ALL('Table'))
ALLEXCEPT function = CALCULATE(SUM('Table'[Value]),ALLEXCEPT('Table','Table'[User]))

15.png

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

View solution in original post

amitchandak
Super User IV
Super User IV

@dillontoramall , not very clear

Denominator =

calculate([PercentRespTestNumerator], allselected(Table))



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

Hi, in an attempt to be more clear. I have the following measure:

 

NewDenominator = (sum(Data[Employee Hours]) - (CALCULATE(SUM(Data[Employee Hours]), fVariableData[JobType] = "WorkJob1") + CALCULATE(SUM(Data[Employee Hours]), fVariableData[JobType] = "WorkJob2")))
 
This gives me the correct total of lets say 5000. Now this data is filtered by specific department. I want to make it that when I create a table and list the numerator and denominator out, the numerator has its values per department, but the denominator has that fixed 5000 value. The numerator is displaying what I want, the denominator is not.
 
dillontoramall_0-1620235762604.png

 

 
 

Helpful resources

Announcements
PBI_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Get Ready for Power BI Dev Camp

Microsoft named a Leader in The Forrester Wave

Microsoft received the highest score of any vendor in both the strategy and current offering categories.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Kudoed Authors