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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

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
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors
Top Kudoed Authors