Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Preparing for a certification exam? Ask exam experts all your questions on May 15th. Register now.

Reply
Anonymous
Not applicable

Let visual be ignored by specific filter(s)

Hi all,

We're running into a problem regarding filtering on a visual. The visual uses "Week" for the x axis, throughout the report we are using the filters "Week", "Month" and "Year" to filter visuals using the filter pane (we're not using slicers in our reports). These 3 fields are part of the same table in our dataset.

 

We want to set up some visuals so that these filters don't affect specific visuals (these visuals need to show all weeks all the time). We've tried using:

CALCULATE ( SUM( [Amount] ) , ALL ( CALENDAR ) )

but without success. The visual continues to change when we use the filters in the filter pane.

 

What are we missing here?

 

Thanks!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

Could you please try to add the field "week" of table "UNIT" into Filters pane instead of the field "WeekNr" of table "CALENDAR"?

line chart with filter.JPG

Best Regards

Rena

View solution in original post

14 REPLIES 14
Anonymous
Not applicable

Hi @Anonymous ,

Which table the field Amount is from? Please try to change the table CALENDAR in the formula to the table where the field amount is: 

CALCULATE ( SUM( [Amount] ) , ALL ( TABLENAME) )

Best Regards

Rena

Anonymous
Not applicable

Hello @Anonymous ,

 

When I do that, the graph shows the total amount for every week. I get a horizontal line, which is not correct.

 

image.png

Anonymous
Not applicable

Hi @Anonymous ,

Could you please provide the fields which applied to this column chart and some sample data(exclude sensitive data)? Please also provide the formula if applied any measure or calculated column.

Best Regards

Rena

Anonymous
Not applicable

Of course, the bar chart is made out of two tables:

- CALENDER (ISO based)

- UNIT

 

X axis: Year, Period, Week hierarchy

Y axis: Amount of units transported

 

The transport date field of the UNIT table is linked to the date field of the CALENDER table. I've added an example PBI file. The idea is that the table does filter with the week filter, but the graph will always show all weeks. Using slicers are not an option.

 

Thanks!

 

Example file 

Anonymous
Not applicable

Hi @Anonymous ,

Please check the below screenshot:

dates2.JPG

Best Regards

Rena

Anonymous
Not applicable

Whoops, I indeed forgot to insert the right data field. However, when I correct this I get the following. For me, it still doesn't work:

 

image.png

Anonymous
Not applicable

Hi @Anonymous ,

It seems the filter for weeknum be put on report level filter, could you please just put it in page level filter? Then set the filter separately for other report pages one by one...

page level filter.JPG

Best Regards

Rena

Anonymous
Not applicable

Hello @Anonymous 

 

That does not make a difference. Is there maybe something wrong with the relationship between these tables? It's currently a many-to-one with filtering to both directions.

 

image.png

Anonymous
Not applicable

Hi @Anonymous ,

Whether the filter field applied on page-lvel filter is from the field "Week" in table "Unit"? And the formula of measure "Amount_Unfiltered" as below:

Amount_Unfiltered = CALCULATE(SUM(UNIT[Amount]),ALL('UNIT'))

Best Regards

Rena

Anonymous
Not applicable

Hi @Anonymous ,

 

I am not sure what you mean by that, but the "Week" field on the x axis is from the CALENDER table.

The values on the y axis are from the UNIT table.

 

The UNIT table does have a "Week" field, but it's not used in the visual, and has a relationship to a "Week" field in the CALENDAR table which is used in the visual.

 

image.pngimage.png

Anonymous
Not applicable

Hi @Anonymous ,

Could you please try to add the field "week" of table "UNIT" into Filters pane instead of the field "WeekNr" of table "CALENDAR"?

line chart with filter.JPG

Best Regards

Rena

Anonymous
Not applicable

Hi @Anonymous ,

 

That works, obviously, because the data points are from the same table. I always assumed this worked cross-table as well.

Anonymous
Not applicable

Hi @Anonymous ,

Is there anything else about this thread that I can assist you? If no, could you please mark the helpful post as Answered? It will be helpful to anyone who might experience the same problem. Thank you.

Best Regards

Rena

amitchandak
Super User
Super User

This should have worked. Another option is to use interaction.

 

https://docs.microsoft.com/en-us/power-bi/service-reports-visual-interactions

Interactions.png

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

Check out the April 2025 Power BI update to learn about new features.

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

Find out what's new and trending in the Fabric community.