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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

percentage of text data

Hi everyone, I'm building my first dashboard and I have a problem with percentage of text data.

I have a column with Yes/No/I don't know/blank answers. I need to calculate the persentage of each option (except null) and build a graph where I'm going to put a time dimension to see a trend. Could you please help me? Which function should I use? Thank you!

2 ACCEPTED SOLUTIONS
TomasAndersson
Solution Sage
Solution Sage

Hi!

 

I'm assuming now that you have a column with dates and another column with answers.


First create a measure counting the amount of answers. If you have null answers, "-countblank" is not needed. If the answers are blank, however, you need that additional function.

TotalAnswers = COUNTA('Table'[Answer])-COUNTBLANK('Table'[Answer])

Then for each option create measures. You can do that in two steps as below, or combine each as a single measure.

nYes = CALCULATE(COUNT('Table'[Answer]),'Table'[Answer]="Yes")
Yes% = 'Table'[nYes]/'Table'[TotalAnswers]

 

And then just put it in any visual you like. Hope it helps!

View solution in original post

Anonymous
Not applicable

Thank you very much, Tomas! It helped!

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Thank you very much, Tomas! It helped!

TomasAndersson
Solution Sage
Solution Sage

Hi!

 

I'm assuming now that you have a column with dates and another column with answers.


First create a measure counting the amount of answers. If you have null answers, "-countblank" is not needed. If the answers are blank, however, you need that additional function.

TotalAnswers = COUNTA('Table'[Answer])-COUNTBLANK('Table'[Answer])

Then for each option create measures. You can do that in two steps as below, or combine each as a single measure.

nYes = CALCULATE(COUNT('Table'[Answer]),'Table'[Answer]="Yes")
Yes% = 'Table'[nYes]/'Table'[TotalAnswers]

 

And then just put it in any visual you like. Hope it helps!

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.