Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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"))
| LearnerID | Course name | Status |
| 1 | math | In progress |
| 2 | english | In progress |
| 3 | history | Completed |
| 4 | geography | Withdrawn |
| 5 | math | Completed |
| 6 | math | Withdrawn |
| 7 | english | In progress |
| 8 | IT | Completed |
| 9 | history | Withdrawn |
| 10 | math | Completed |
Solved! Go to Solution.
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
Proud to be a Super User!
thank you very much - sorry for the late reply
you are welcome
Proud to be a Super User!
Hello @SBR1D ,
this is the measure
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 💡
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
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
Proud to be a Super User!
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.