cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.