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

See when key Fabric features will launch and what’s already live, all in one place and always up to date. Explore the new Fabric roadmap

Reply
BotBot1
Helper III
Helper III

DAX not filtering from slicers

Hi,

 

I have the following measure that is counting the correct number of projects, but when I select slicers the total figures do not change. I'm sure a quick fix but any help is appreicated, thanks!

 

ProjectsO.O.D =
VAR Precontolive =
    CALCULATE (
        DISTINCTCOUNT ( Project[ProjectID] ),
        Project[ProjectStartDate] < TODAY (),
        'Project Status'[ProjectStatusName] IN {"Pre-Contract"}
    )

VAR Livetodef =
    CALCULATE (
        DISTINCTCOUNT ( Project[ProjectID] ),
        Project[ProjectCompletionDate] < TODAY (),
        'Project Status'[ProjectStatusName] IN {"Live"}
    )

VAR Defectstoarc =
    CALCULATE (
        DISTINCTCOUNT ( Project[ProjectID] ),
        Project[ProjectCompletionDate] < EDATE ( TODAY (), -12 ),
        'Project Status'[ProjectStatusName] IN {"Defects"}
    )

RETURN

Precontolive + Livetodef + Defectstoarc
1 REPLY 1
lbendlin
Super User
Super User

Please provide more details.  How are the slicer columns wired into your overall data model? Do they even have a chance to impact the result?

Helpful resources

Announcements
May PBI 25 Carousel

Power BI Monthly Update - May 2025

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

May 2025 Monthly Update

Fabric Community Update - May 2025

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