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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
JenniferWallace
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, @JenniferWallace 

 

you can use edit interaction

please visit HERE 

View solution in original post

6 REPLIES 6
Dangar332
Super User
Super User

hi, @JenniferWallace 

 

you can use edit interaction

please visit HERE 

mlsx4
Memorable Member
Memorable Member

Hi @JenniferWallace 

 

You can do this:

 

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

 

 

mlsx4
Memorable Member
Memorable Member

@JenniferWallace have you tried this?

If both tables are related, it should work

Dangar332
Super User
Super User

Hi, @JenniferWallace 

 

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, @JenniferWallace 

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
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.