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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.