Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
I have a card that i want to show the number of projects that where ProjectStatus = Active, and StatusRAG = Red.
I was using a filter on the card and that worked until I have started using bookmarks. When resetting the filters in the service, the filter on the cards are removed resulting in an incorrect value being shown.
I assume there is a more robust method for setting these values, can anybody suggest what is best?
PS, The card is using the following formula so that it will show 0 insted of (Blank)
zzMeasureProjectStatusActiveIF =
IF (
COUNTAX('Projects (2)', 'Projects (2)'[ProjectStatus] = "Active") = BLANK (),
"0",
COUNTAX('Projects (2)', 'Projects (2)'[ProjectStatus] = "Active")
)
Solved! Go to Solution.
@Anonymous
You may also use:
CountA Filter = COUNTAX ( 'Projects (2), IF ( 'Projects (2)'[ProjectStatus] = "Active" && 'Projects (2)'[StatusRAG ] = "Red", 'Projects (2)'[ProjectStatus] ) )
Rgds,
Vivek
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
Have you solved your problem?
If you have solved, please always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.
If you still need help, please share your data sample and your desired output so that we could help further on it.
Best Regards,
Cherry
@Anonymous
You may also use:
CountA Filter = COUNTAX ( 'Projects (2), IF ( 'Projects (2)'[ProjectStatus] = "Active" && 'Projects (2)'[StatusRAG ] = "Red", 'Projects (2)'[ProjectStatus] ) )
Rgds,
Vivek
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
The better approach is to use calculate.
Something like this (substitute your columns)
=CALCULATE(countrows(projects),projects[status]=“Active”,Projects[rag]=“Red”)
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
84 | |
78 | |
41 | |
40 | |
35 |