cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

Ignore row context only

Is it possible for a table visual to including a column that ignores the row context, while still retaining other visual filters?

 

For example, I have the following table with filters for month and company. I also have a column called grand mean, which shows the total mean in every row. 

 1.PNG

Now, if I filter by either month or company, the grand mean should adjust as well, as shown below.

 

2.PNG3.PNG

 

 

 

 

 

 

 

 

But all I'm getting right now is this:


2-2.PNG3-2.PNG

 

 

 

 

 

 

 

 

 

Here's my function for Grand Mean...

Grand Mean =

   CALCULATE(

      SUM(Customers[Taste Rating]),

      ALL(Customers[Company]),

      ALL(Customers[Month Surveyed])

   )/

   CALCULATE(

      COUNT(Customers[Taste Rating]),

      ALL(Customers[Company]),

      ALL(Customers[Month Surveyed])

   )

 

All help is appreciated. Thank you!

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User IV
Super User IV

Re: Ignore row context only

with ALL(Customers[Company]) you are removing filter on the company field. 

 

I guess you want to calculate "Grand mean" on selected records, correcT?

 

if that is the case then try following

 

Grand Mean =
   CALCULATE(
      SUM(Customers[Taste Rating]),
      AllSelected(Customers)
   )/
   CALCULATE(
      COUNT(Customers[Taste Rating]),
      AllSelected(Customers)
   )

 

 

 






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

Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





View solution in original post

2 REPLIES 2
Highlighted
Super User IV
Super User IV

Re: Ignore row context only

with ALL(Customers[Company]) you are removing filter on the company field. 

 

I guess you want to calculate "Grand mean" on selected records, correcT?

 

if that is the case then try following

 

Grand Mean =
   CALCULATE(
      SUM(Customers[Taste Rating]),
      AllSelected(Customers)
   )/
   CALCULATE(
      COUNT(Customers[Taste Rating]),
      AllSelected(Customers)
   )

 

 

 






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

Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





View solution in original post

Highlighted
Helper I
Helper I

Re: Ignore row context only

Yes!

Thank you!

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

Community Blog

Community Blog

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

Upcoming Events

Upcoming Events

Wondering what events you could join or have an event to promote yourself? Check out our Upcoming Events.

Top Solution Authors
Top Kudoed Authors