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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

Slow when using filter pane

Hi, I have 2 main tables in my model.

I need to show which ID's QTY is not match and the variance so that I have a measure:

 

variance = sum(table1[QTY]) - sum(table2[QTY])

 

I want to show the items only when Variance <> 0. Then I put this measure in the filter pane with Variance is not blank.

However, I found the filter make this table loading being very very slow (~30 seconds), when no filter (5 seconds)

May I ask is there anyway to fix it or is it possible to filter the table by the measure 'variance'? I may really need some helps here.

table1:

IDQTY
110
210
310

 

table2:

IDCountryQTY
1A10
2A5
3B10

 

Desired Result:

IDCountryVariance
2A5

 

Doing it in PowerQuery is not an option because user want to filter it by other columns (e.g. Country)

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

You can merge Table1 into Table2 using the Query Editor.  Then write a calculated column formula to calculate the difference between the quantity columns.  Build your visual from the consolidaed Table2.  Use this measure

Variance = sum(Data{Difference[)

In the filter pane, apply a condition of Variance <> 0.

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
lbendlin
Super User
Super User

Should we assume that Table1 and Table2 are linked via the ID ?  Which of them is the  parent table?  or is it a 1:1 relationship (in which case the tables can be merged)?

Anonymous
Not applicable

@lbendlin , yes, the key column is "ID" to map.

It is a One to Manay relationship between Table1 : Table2

 

Cannot do merge in this case because Table2's QTY can be filtered by other columns before calculating the variance so it is needed to be on the DAX.
Thanks!

Please provide sample data that properly demonstrates the relationship.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors