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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

yes no percentage dax

help  please i want to make a clusterd colum visual with % of yes and no answers my data is like this

 

Name          answer

andrew         yes

peter            no

withney        no

 

 

i want to know how many people answert with yes and how many people answert no and i want to show it in a clusterd colum diagram.

 

hope someone can help me :):)

1 ACCEPTED SOLUTION

hi @Anonymous 

are you expecting like:

measure = 
VAR _count = DISTINCTCOUNT(TableName[Name])
VAR _countall =
CALCULATE(
    DISTINCTCOUNT(TableName[Name]),
    ALL(TableName[answer])
)
RETURN
DIVIDE(_count, _countall)

 

FreemanZ_0-1678090881206.png

 

View solution in original post

3 REPLIES 3
PbiwithPrasad
Helper I
Helper I

Take the answer column in x axis and the name column count in y axis you will get the answer.

If you need the % get total name count with out filters and decide by the name count, and drop it in y axis.

Anonymous
Not applicable

This doesnt work for me if i place the measure in in the Y axis it gives me 100% by both answers i need a measuere like this:

 

count answer

count answer divide by yes and now 

hi @Anonymous 

are you expecting like:

measure = 
VAR _count = DISTINCTCOUNT(TableName[Name])
VAR _countall =
CALCULATE(
    DISTINCTCOUNT(TableName[Name]),
    ALL(TableName[answer])
)
RETURN
DIVIDE(_count, _countall)

 

FreemanZ_0-1678090881206.png

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.