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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Dax Help Needed

So i have a data table with different project submitting weekly status report. I want to count number of ongoing active projects (which is anything other than not-started, and completed) and display this measure on a card. In order to do this I want to count number of distinct project that does not have a status of "not started" and "completed"

 

Is there any way I can count distinct projects that contains only the variable of on-track, at risk <1 week behind and, serious risk >1 week behind?

 

Capture.PNG

2 REPLIES 2
selimovd
Super User
Super User

Hey @Anonymous ,

 

yes, that's possible. Check the following measure:

Projects Submitted =
CALCULATE(
    DISTINCTCOUNT( myTable[Projects] ),
    myTable[Status]
        IN {
        "On-Track",
        "at risk <1 Week behind",
        "serious risk >1 week behind"
    }
)

 

I didn't see a project id column, so I just did the DISTINCTCOUNT on the project name. I personally find it always a little dangerous to count on text. When 2 projects have the same name you will get wrong results. So I would prefer to count on unique Project IDs.

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 
Anonymous
Not applicable

I am not getting the right answer. Is it possible to just get a distinct count of the project that does not have not started or complete instead?

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.