Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi,
I just wanted to check what is wrong with this formula?
Closed with Task = OR(CALCULATE(DISTINCTCOUNT(Task[Job ID (Task) ]),'Task'[Job.Status__c]="Closed"), CALCULATE(DISTINCTCOUNT(Task[Job ID (Task) ]),'Task'[Job.Status__c]="Paymnet_Entry"))
Want to count jobs which either are closed or are in payment_entry status.
After entering this forumla I don't get any results at all.
Solved! Go to Solution.
Ah, got ya.
I believe this will work:
DistinctCount.Open.PaymentEntry = CALCULATE( DISTINCTCOUNT( Task2[Job_ID] ), FILTER( Task2 , Task2[Job_Status] = "Closed" || Task2[Job_Status] = "Payment Entry") )
Hey there!
I believe you'll be able to achieve your desired result with a simpler code.
Try this:
Count Closed.PaymentEntry = COUNTROWS( FILTER( Task , Task[Job_Status] = "Closed" || Task[Job_Status] = "Payment Entry" ) )
In short, we use the countrows function to count the rows of a table that we filter to only include rows with "Closed" or "Payment Entry" job statuses. The || is the "or" operator.
Hi @AndreT,
The formula @GabrielSantos posted is right. Please try it and mark the right reply as answer if you have resolved your issue.
Best Regards,
Angelia
Ah, got ya.
I believe this will work:
DistinctCount.Open.PaymentEntry = CALCULATE( DISTINCTCOUNT( Task2[Job_ID] ), FILTER( Task2 , Task2[Job_Status] = "Closed" || Task2[Job_Status] = "Payment Entry") )
Thank you, it worked.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
81 | |
80 | |
60 | |
35 | |
35 |
User | Count |
---|---|
100 | |
60 | |
56 | |
46 | |
41 |