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

Filtering on summarised data

Hi,

I have a table that has the following headings:

Broker     USD Spend   

XXX         $100

YYY         $200

 

Each row has a couple of columns that categorise by region: EMEA, APAC, CEE for example. I have made a filter for all of those columns using: https://community.powerbi.com/t5/Desktop/Once-Slicer-for-multiple-columns/td-p/407949

So my slicer now has all the options (EMEA, APAC, CEE).

 

As USD spend is a summarised column, when I change the region, the USD spend does not update to show how much each broker's usd spend is. For example, if broker XXX has two orders of $20 that are both from EMEA, and we selected 'EMEA' from the slicer, it still shows $100 in the broker table. 

 

Is there anyway to solve this issue without making USD spend unsummarised? This doesn't look great compared to summarised but I would like the filtering to work correctly. 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Helper I
Helper I

Re: Filtering on summarised data

Fixed this with a calculate dax function:

 

IF(ISFILTERED('SlicerTable for CCY region'[Region]),
SWITCH(TRUE(),
selectedFilter="EMEA",CALCULATE(SUM('Table 1'[USD Spend]),FILTER('Table1','Table1'[EMEA]=selectedFilter)),

 

etc

View solution in original post

2 REPLIES 2
Highlighted
Super User IV
Super User IV

Re: Filtering on summarised data

Refer

https://community.powerbi.com/t5/Desktop/Creating-a-dynamic-summarized-table-or-calculated-table/td-...

https://community.powerbi.com/t5/Desktop/DAX-Dynamic-Table-and-Summarize-Table/td-p/304105

 

The ideal way is that you use unsummarized data.

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...
https://community.powerbi.com/t5/Community-Blog/Power-BI-Working-with-Non-Standard-Time-Periods/ba-p...
https://community.powerbi.com/t5/Community-Blog/Comparing-Data-Across-Date-Ranges/ba-p/823601



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
Helper I
Helper I

Re: Filtering on summarised data

Fixed this with a calculate dax function:

 

IF(ISFILTERED('SlicerTable for CCY region'[Region]),
SWITCH(TRUE(),
selectedFilter="EMEA",CALCULATE(SUM('Table 1'[USD Spend]),FILTER('Table1','Table1'[EMEA]=selectedFilter)),

 

etc

View solution in original post

Helpful resources

Announcements
June 2020 Community Highlights

June 2020 Community Highlights

Featured community members, changes to the Community, and more! Read up on recent Power BI community news.

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