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
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
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.

Top Solution Authors