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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

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
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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