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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
SBR1D
Helper III
Helper III

Count course names where learners not in progress

Hi All

 

So i want a distinct count of courses where the status is <> In progress 

 

So the count should total to  4 

 

This is what i have tried but i get  " a function "PLACEHOLDER" has been used in a true/false expression that is used as a table expression. 

 

I am not sure what to do from here? 

Please help

 

distinct count course not active = CALCULATE(DISTINCTCOUNT('Table'[Course Name]),[Learners in progress]=0)

 

Learners in progress = CALCULATE(COUNTA('Table'[LearnerId]),('Table'[Status]="In Progress"))

 

 

 

 

LearnerIDCourse nameStatus
1mathIn progress
2englishIn progress
3historyCompleted
4geographyWithdrawn
5mathCompleted
6mathWithdrawn
7englishIn progress
8ITCompleted
9historyWithdrawn
10mathCompleted
1 ACCEPTED SOLUTION

@SBR1D 

maybe you can try this

Measure = 
var TBL=DISTINCT(SELECTCOLUMNS(FILTER('Table','Table'[Status]="In progress"),"Course name",'Table'[Course name]))
VAR tbl2=DISTINCT('Table'[Course name])
var tbl3=EXCEPT(tbl2,TBL)
return COUNTROWS(tbl3)

pls see the attachment below





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

6 REPLIES 6
SBR1D
Helper III
Helper III

thank you very much - sorry for the late reply

you are welcome





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Idrissshatila
Super User
Super User

Hello @SBR1D ,

 

this is the measure

 

Measure = CALCULATE(DISTINCTCOUNT('YourTableName'[Course name]),'YourTableName'[Status] <> "In Progress")
 
Idrissshatila_0-1696584129120.png

 

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Follow me on Linkedin
Vote for my Community Mobile App Idea 💡

 


Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




I realise i have explained this incorrectly but thank you for the initial solution.

 

What i need to do is if there are no "in progress" status then do distinct count.

e.g. math has 4 status, 1 in progress , 2 completed and 1 withdrawn, because it has 1 in progress do not count it.

 

So the final count should be 3  as there 3 courses with no status = in progress and they are History, Geography and IT. 

 

Thanks in advance

Can anyone help please?

@SBR1D 

maybe you can try this

Measure = 
var TBL=DISTINCT(SELECTCOLUMNS(FILTER('Table','Table'[Status]="In progress"),"Course name",'Table'[Course name]))
VAR tbl2=DISTINCT('Table'[Course name])
var tbl3=EXCEPT(tbl2,TBL)
return COUNTROWS(tbl3)

pls see the attachment below





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.

Top Solution Authors