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 VII
Super User VII

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 VII
Super User VII

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
Meet the 2020 Season 2 Power BI Super Users!

Meet the 2020 Season 2 Power BI Super Users!

Find out who's part of the program this season, and welcome the new Super Users.

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!

July 2020 Community Highlights

July 2020 Community Highlights

Learn about the exciting things that happened in July.

Featured Data Story of The Month

Featured Data Story of The Month

All Data Stories Gallery contributions are reviewed for each month. We select a contribution and feature the community member the following month.

Power BI Dev Camp - Developing with .NET Core

Power BI Dev Camp - Developing with .NET Core

Learn how to develop custom web applications for Power BI using .NET Core 3.1 and .NET 5.

Top Solution Authors
Top Kudoed Authors