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
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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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