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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. 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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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