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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
aqeel_shaikh
Helper III
Helper III

Count of Closed task and open task in a card

Iam performing a card in powerbi where the status change to "Closed" then the count bar should show for closed items

similarly for open items the another card should show for "Open" items.

How can i perform this in power bi.

1 ACCEPTED SOLUTION
Akash_Varuna
Super User
Super User

Hi @aqeel_shaikh You could achive this throug measures Could you follow these please 

Create measures:

  • ClosedTasksCount:

 

ClosedTasksCount = 
COUNTROWS(
    FILTER(
        YourTable,
        YourTable[Status] = "Closed"
    )
)
​

 

  • OpenTasksCount:
    OpenTasksCount = 
    COUNTROWS(
        FILTER(
            YourTable,
            YourTable[Status] = "Open"
        )
    )
    ​

    Add two card visuals and assign each measure to display the counts.
    If this post helped please do give a kudos and accept this as a solution 
    Thanks In Advance

View solution in original post

4 REPLIES 4
aqeel_shaikh
Helper III
Helper III

Thanks aton. it helped

AnkitKukreja
Super User
Super User

Hi! @aqeel_shaikh 

 

You can use the measure as suggested by Akash_varuna or you can drag and drop and then filter the data as per your status. You can use multi-row card, card(new) or a card visual to display your data. Attaching image below for the multi-row card and card(new) for your reference.

 

AnkitKukreja_0-1741066267782.png

 

 

 

For Power BI trainings or support dm or reach out to me on LinkedIn.
If my response has successfully addressed your question or concern, I kindly request that you mark this post as resolved. Additionally, if you found my assistance helpful, a thumbs-up would be greatly appreciated.

Thanks,
Ankit Kukreja
www.linkedin.com/in/ankit-kukreja1904
nilendraFabric
Super User
Super User

Create Two Measures
• Use Power BI’s COUNT + FILTER logic to tally tasks:
• One measure counts entries marked “Closed”
• Another counts entries marked “Open”

 Add Card Visuals
• Drag two Card visuals to your report canvas
• Assign the “Closed” measure to one card
• Assign the “Open” measure to the other

Akash_Varuna
Super User
Super User

Hi @aqeel_shaikh You could achive this throug measures Could you follow these please 

Create measures:

  • ClosedTasksCount:

 

ClosedTasksCount = 
COUNTROWS(
    FILTER(
        YourTable,
        YourTable[Status] = "Closed"
    )
)
​

 

  • OpenTasksCount:
    OpenTasksCount = 
    COUNTROWS(
        FILTER(
            YourTable,
            YourTable[Status] = "Open"
        )
    )
    ​

    Add two card visuals and assign each measure to display the counts.
    If this post helped please do give a kudos and accept this as a solution 
    Thanks In Advance

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Kudoed Authors