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.
I have a recommendation SP list that feeds off a project list.
I have 2 count formula that counts the # of opened or Closed recommendations for a project.
But, on the main page, when I try this it will filter out the projects with no recommendations, which is not what I want. I want it to show a 0 or leave blank. My code isn't working correctly, can I get some advice?
I'm thinking if I need to create a new column, and write another formula.
Thoughts ( if recommendation > 0, count row, else "0" )
ty
CALCULATE(COUNT(EARecs[Closure Accepted]),EARecs[Closure Accepted]="Yes")
CALCULATE(COUNT('EARecs'[Closure Accepted]), EARecs[Closure Accepted] <> "Yes"
Solved! Go to Solution.
Hi, @nerdyplayer
Your idea is correct, you can try the following DAX expressions, create four measures
Open Recs Count = CALCULATE(COUNT(EARecs[Closure Accepted]), EARecs[Closure Accepted] = "Yes")
Closed Recs Count = CALCULATE(COUNT(EARecs[Closure Accepted]), EARecs[Closure Accepted] <> "Yes")
Open Recs Display = IF([Open Recs Count] > 0, [Open Recs Count], 0)
Closed Recs Display = IF([Closed Recs Count] > 0, [Closed Recs Count], 0)
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data)
Best Regards
Yongkang Hua
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @nerdyplayer
Your idea is correct, you can try the following DAX expressions, create four measures
Open Recs Count = CALCULATE(COUNT(EARecs[Closure Accepted]), EARecs[Closure Accepted] = "Yes")
Closed Recs Count = CALCULATE(COUNT(EARecs[Closure Accepted]), EARecs[Closure Accepted] <> "Yes")
Open Recs Display = IF([Open Recs Count] > 0, [Open Recs Count], 0)
Closed Recs Display = IF([Closed Recs Count] > 0, [Closed Recs Count], 0)
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data)
Best Regards
Yongkang Hua
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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 |
---|---|
11 | |
9 | |
8 | |
8 | |
8 |
User | Count |
---|---|
13 | |
12 | |
11 | |
10 | |
9 |