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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors