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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Use outside filter context within a calculate table

Hi All,

 

I created a calculated table starting from the main table, but if I apply a filter on the main table it doesn't filter the calculate table. 

 

Here below the schema:

image.png

 

 

 

 

 

 

 

Here below the code:

 
CALCULATED TABLE =
 
VAR Main_Table_Var = FILTER(
   MAIN_TABLE;
   [Filter1]
)

VAR Calculated_Table_Var=SUMMARIZE(
   Main_Table_Var ;
   [Column1];
   "Test"; SUM([Column2]);
)
 
Return
   Calculated_Table_Var
 
I don't understand why the main_table_var gets ever the whole main table without considering the filter I've applied to it in the report.
 
Thanks!!
 
 
1 ACCEPTED SOLUTION
Anonymous
Not applicable

means you want first your main table get filtered and based on filtered table your calculated table needs to be calculATED?

 

if your requirement is like this then it is not possible because calculated table gets loaded at first load only and they will not get calculated every time based on some filters.

 

Thanks & regards,
Pravin Wattamwar
www.linkedin.com/in/pravin-p-wattamwar

If I resolve your problem Mark it as a solution and give kudos.

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Make sure your main table is connected with Calculated table .

You can do it in relationship tab.

 

 

Thanks & regards,
Pravin Wattamwar
www.linkedin.com/in/pravin-p-wattamwar

If I resolve your problem Mark it as a solution and give kudos.

Anonymous
Not applicable

Hi @Anonymous 

 

Many thanks for your reply, I'm looking for an alternative solution.

 

Because I would use the filtered main table as starting point for the calculated table. 

 

Regards

Anonymous
Not applicable

means you want first your main table get filtered and based on filtered table your calculated table needs to be calculATED?

 

if your requirement is like this then it is not possible because calculated table gets loaded at first load only and they will not get calculated every time based on some filters.

 

Thanks & regards,
Pravin Wattamwar
www.linkedin.com/in/pravin-p-wattamwar

If I resolve your problem Mark it as a solution and give kudos.

Anonymous
Not applicable

Thanks, I would have something like that.

 

Regards

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.