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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Kim_Sky
Helper II
Helper II

dashboard and power query check count true only

Hi, 

I have try to summarise my table by using group in the transform data and create a condition column called check. The conditional column is set at pic1.  The result shown in pic2. 

In dashboard, I will want to have a count of true and false in a table, and

in the card, I will like to shown if at that week is 6 days true and one day false, then still need to shown false. 

 

Thanks for your help. 

Kim_Sky_2-1660826874178.png(pic1)

 

Kim_Sky_0-1660826657175.png(pic2)

Kim_Sky_3-1660827121560.png(pic3)

 

1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @Kim_Sky

 

Add the "Check" column to Values of the matrix visual and select Count aggregation type for it. 

vjingzhang_0-1661247217540.png

 

For the card visual, create the following measure and add it to the card. I recommend that you add a Date table to the model which has week column in it. I have attached a sample file at bottom. 

Week Check = IF("False" IN VALUES('Sample'[Check]), "False", "True")

vjingzhang_1-1661247268801.png

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

View solution in original post

2 REPLIES 2
v-jingzhang
Community Support
Community Support

Hi @Kim_Sky

 

Add the "Check" column to Values of the matrix visual and select Count aggregation type for it. 

vjingzhang_0-1661247217540.png

 

For the card visual, create the following measure and add it to the card. I recommend that you add a Date table to the model which has week column in it. I have attached a sample file at bottom. 

Week Check = IF("False" IN VALUES('Sample'[Check]), "False", "True")

vjingzhang_1-1661247268801.png

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

lbendlin
Super User
Super User

Please provide sanitized sample data that fully covers your issue. I can only help you with meaningful sample data.
Please paste the data into a table in your post or use one of the file services like OneDrive or Google Drive.
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...

Please show the expected outcome based on the sample data you provided. Screenshots of the expected outcome are ok.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors