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
Robert14358
Resolver III
Resolver III

Var calculate table not working with filters

Hello All.

 

this is my DAX

AC Hrs =

VAR SUMTABLE =

CALCULATETABLE(
    SUMMARIZE(
        Dim_ACT,
        Dim_ACT[ACT_Key],
        "MAX",
        MAX(Fact_SNAPSHOT[SS_HRS_AC])
    ),
NOT ISBLANK(Dim_ACT[ACT_ID])
)

RETURN
CALCULATE(SUMX(SUMTABLE,[MAX]))
 
It works when no filters are applied, but when i filter it, the sub total do not update.
NO filters
Robert14358_1-1676409793704.png

 

With Filters

Robert14358_2-1676409854174.png

 

 



1 ACCEPTED SOLUTION

yeah FILTER() function is what i needed

View solution in original post

2 REPLIES 2
Robert14358
Resolver III
Resolver III

turns out the NOT ISBLANK(Dim_ACT[ACT_ID])) is causing this to happen for some reason

yeah FILTER() function is what i needed

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.