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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Larry_Wang
Helper I
Helper I

Create a card or measure for the number of status

Hi Everyone,

 

I want to create a measure or a card that can show the number of items for each status. See picture below for details. For example I want to know how many closed or resolved items. How to do this? I tried to work with new quick measure but not succeed. Can anyone give me some good suggestions on this issue? Thanks a lot🙂

 

Larry_Wang_0-1611558155620.png

 

Thanks,

 

Larry

1 ACCEPTED SOLUTION
PhilipTreacy
Super User
Super User

Hi @Larry_Wang 

Download this sample PBIX file with the following data and DAX measure

 

Try these measures

Closed = CALCULATE( COUNTA('StatusTable'[Status]), FILTER('StatusTable', 'StatusTable'[Status] = "Closed"))
Resolved = CALCULATE( COUNTA('StatusTable'[Status]), FILTER('StatusTable', 'StatusTable'[Status] = "Resolved"))

 

With this table

status.png

 

Gives this

stat-table.png

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


View solution in original post

4 REPLIES 4
PhilipTreacy
Super User
Super User

Hi @Larry_Wang 

Please check my updated post and sample file which includes separate cardsd and measures for Closed and Resolved.

 

https://d13ot9o61jdzpp.cloudfront.net/files/pbiforum/Larry_Wang1.pbix

 

regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


PhilipTreacy
Super User
Super User

Hi @Larry_Wang 

Download this sample PBIX file with the following data and DAX measure

 

Try these measures

Closed = CALCULATE( COUNTA('StatusTable'[Status]), FILTER('StatusTable', 'StatusTable'[Status] = "Closed"))
Resolved = CALCULATE( COUNTA('StatusTable'[Status]), FILTER('StatusTable', 'StatusTable'[Status] = "Resolved"))

 

With this table

status.png

 

Gives this

stat-table.png

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Hi @PhilipTreacy ,

 

Cool! It is exactly what I want. Thank you for the help on this issue.

 

Larry

Hi @PhilipTreacy ,

 

I tried to create this measure but it returns a value for the total number of all status types. How can I set a filter like "Closed" to this measure so that it only calculate "Closed" items?

 

Thanks,

 

Larry

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Fabric Monthly Update - May 2024

Check out the May 2024 Fabric update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.