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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
ivanuska
Advocate I
Advocate I

Applying filter on ALL function

Dear all,

 

I am rebuilding the data model after the developer has left and I am trying to apply filter for the calculated table below:

 

Accounts = SUMMARIZE(
    ALL(CurrentSnapshots[CUSTOMER_ID],CurrentSnapshots[SnapshotType],CurrentSnapshots[INVOICE_NUMBER],CurrentSnapshots[REMAINING_AMT_USD]),
    CurrentSnapshots[SnapshotType],
    CurrentSnapshots[CUSTOMER_ID], 
    "Count",COUNT(CurrentSnapshots[INVOICE_NUMBER]),
    "NetAmount",SUM(CurrentSnapshots[REMAINING_AMT_USD]),
    "PastDueAmount",CALCULATE(SUM(CurrentSnapshots[REMAINING_AMT_USD]), CurrentSnapshots[DueDays]>0),
    "MaxStage",CALCULATE(MAX(CurrentSnapshots[NEXT_ACTION_STAGE]),CurrentSnapshots[DrivingEligible]=1),
    "Collector Name", DISTINCT(CurrentSnapshots[COLLECTOR_NAME])
        )

 

I need to apply filter on field CurrentSnapshots[SnapshotType] to show only value "Current". I have tried different ways to integrate the FILTER function into the expression however without any luck.

 

Could you please help me?

 

Thank you in advance!

1 ACCEPTED SOLUTION

I finally manage to find the solution:

Table - 
SUMMARIZE(
FILTER( ALL (Table), SnapshotType = "Current"),
rest of expression
)

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi,

Have you tried using allexcept()? 
Here is somewhat of a similar issue: https://community.powerbi.com/t5/Desktop/DAX-formula-to-combine-quot-Filter-quot-and-quot-ALL-quot/m...

I finally manage to find the solution:

Table - 
SUMMARIZE(
FILTER( ALL (Table), SnapshotType = "Current"),
rest of expression
)

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.