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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Belindah
Frequent Visitor

Power BI Report Help Please

Hi. I'm creating a Power BI report from a Teams List that I imported. The problem I'm having is I want to create a card that gives me the total number of Yes entries in a column that has a choice of yes or no, with the default choice being no. When I add that column to the card, it just gives me the total number of the rows that have either entry. The only option I see to choose between the two is in the drill down, which I don't want because that changes everything else as well. Is there a way I can do this?

1 ACCEPTED SOLUTION
Uzi2019
Super User
Super User

Hi @Belindah
I have created smample data and created measure on choice column. please refer screenshot FYR.

Count = CALCULATE(COUNT('Table Name'[Choice]),'Table Name'[Choice]="yes")

Uzi2019_0-1710826028062.png

I hope I answered your question!

 

 


 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

View solution in original post

3 REPLIES 3
Uzi2019
Super User
Super User

Hi @Belindah
I have created smample data and created measure on choice column. please refer screenshot FYR.

Count = CALCULATE(COUNT('Table Name'[Choice]),'Table Name'[Choice]="yes")

Uzi2019_0-1710826028062.png

I hope I answered your question!

 

 


 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!
samratpbi
Super User
Super User

There are many options. Easiest option may be apply a filter on your card visual with column value = Yes. Or you may create a measure like below:

Count Y =
CALCULATE(
    COUNT(T1[Y/N]),
    T1[Y/N] = "Y"
)
 
If this resolves your provlem, then please mark it as Solution. Thanks

Thank you! I will try first thing tomorrow and mark as solution if it works for me.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.