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

How to not apply a filter for a specific part of a measure formula

Hi everyone. 

 

Hope you're well

 

I want to "freeze" a specific part of a calculation. How can I do that?

 

For an example: 

 

"Avg. of Total Points expected as per day reported compared with global average(Budget)" =
SUM(Logins[Nr. of Employees (as of Jan 2020), inc. Interns, working students, etc.])*[Days as of realease tool]
*CALCULATE((SUM('Executed Award Detail'[Awd Point Amt])/[Days as of realease tool])/[Global Population])
 
This part of the sentence  (in red color) when with no filter/slicer gives me a number equal "0.315", and when I apply a filter this changes. I want to keep this value of 0.315.
 
Everything else can change, but not this value.
 
Could anyone help me? 

 

5 REPLIES 5
Highlighted
Super User IV
Super User IV

Re: How to not apply a filter for a specific part of a measure formula

If all measure are from same table

CALCULATE((SUM('Executed Award Detail'[Awd Point Amt])/[Days as of realease tool])/[Global Population],all('Executed Award Detail'))

 

 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
My Recent Blog -Week is not so Weak Connect on Linkedin

Proud to be a Super User!

Highlighted
Super User IV
Super User IV

Re: How to not apply a filter for a specific part of a measure formula

If [Days as of realease tool] is a measure, you may have to do something additional to what @amitchandak posted. Hard to tell. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

 


---------------------------------------

Putting square pegs in round holes since 1972.

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Highlighted
Frequent Visitor

Re: How to not apply a filter for a specific part of a measure formula

Hi @Greg_Deckler, thank you for your tip. I'm new here and this is actually my first post. 
I'll read this post and then I came back here to do some changes. 

Many thanks 

😃 

 

Highlighted
Super User IV
Super User IV

Re: How to not apply a filter for a specific part of a measure formula

No worries! I was just not 100% as to what everything was in your formula. If that was a measure and it was being impacted by a different table filter than was in @amitchandak 's ALL then that could still cause your number to change. That's all I was worried about.

 


---------------------------------------

Putting square pegs in round holes since 1972.

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Highlighted
Community Support
Community Support

Re: How to not apply a filter for a specific part of a measure formula

Hi @lucasbarros 

 

If you've fixed the issue on your own please kindly share your solution. if the above posts help, please kindly mark it as a solution to help others find it more quickly.thanks!

 

 

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

Helpful resources

Announcements
Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Power Platform 2020 release wave 2 plan

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors