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
Pranali_R
Frequent Visitor

All Function not working

CALCULATE(
    SUM(Table[marks]),
    FILTER(
        Table,
        Table[grades] = "Average"
    ),
    ALL('Calendar'[year])
 
Why is my  ALL('Calendar'[year]) not working, I want it to not be affected by this Calendar
year slicer
 
1 ACCEPTED SOLUTION
Dangar332
Super User
Super User

hi, @Pranali_R 

 

you can use edit interaction

please visit HERE 

View solution in original post

6 REPLIES 6
Dangar332
Super User
Super User

hi, @Pranali_R 

 

you can use edit interaction

please visit HERE 

mlsx4
Memorable Member
Memorable Member

Hi @Pranali_R 

 

You can do this:

 

Measure = CALCULATE(
    SUM(Table[marks]),ALL('Calendar'[year]), Table[grades]="Average")

 

 

mlsx4
Memorable Member
Memorable Member

@Pranali_R have you tried this?

If both tables are related, it should work

Dangar332
Super User
Super User

Hi, @Pranali_R 

 

you use AlLL() as a calculate modifier which remove filter context not ignore outer filter 

for ignoring outer filter you must usr ALL()  as  a  table function.
for more dive in ALL() function refer HERE 

 

sumx(
   filter( 
     all('table'),    --- use as a table function so ignore outer filters
     table[grades]="Average"
   ),
   Table[marks]
 )


or 

CALCULATE(
    SUM(Table[marks]),
    FILTER(
        all(Table),
        Table[grades] = "Average"
    )
 )

Hi @Dangar332 ,

 

I understand this issue, But the thing is, my filter table and calendar table is different, so how should i accomodate the filter from 2 different tables and use ALL as a table function

Hi, @Pranali_R 

try below

CALCULATE(
     SUM(Table[marks]),
     FILTER(
        all('Calendar'),
        X  -- use column name which participate in relationship b/w tables(table and calender)
     ),
     'table'[grades]="Average"
    )

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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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.