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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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