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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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

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

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

View solution in original post

14 REPLIES 14
v-yiruan-msft
Community Support
Community Support

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

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

Hello @v-yiruan-msft ,

 

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

 

image.png

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

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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 

Hi @Anonymous ,

Please check the below screenshot:

dates2.JPG

Best Regards

Rena

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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

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

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

Hello @v-yiruan-msft 

 

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

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

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

Hi @v-yiruan-msft ,

 

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

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

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

Hi @v-yiruan-msft ,

 

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

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

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

November Carousel

Fabric Community Update - November 2024

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.