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
qwertzuiop
Advocate III
Advocate III

count occurence of a text in a column in percentage

Hello dear Power BI Community

 

I hope you guys can help me

What is the problem?

Here the initial situation:

TransportIDArrival
1Late
2Early
3Late
4Late
5Early
6Late

 

I would like to create four measures to fill the table below.

For the numbers I can use the following measure.

EarlyNumber= COUNTAX(FILTER('Table';[Arrival]="Early");[Arrival])
LateNumber= COUNTAX(FILTER('Table';[Late]="Early");[Arrival])

But now to my question
: How can I create a measure to add the percentage occurence (here in red) to the table?

 

EarlyNumberEarlyPercentageLateNumberLatePercentage
233,3 %466,6%

 

Thank you very much for your help.
Cheers
qwertzuiop

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Use below measures,

 

early = COUNTAX(FILTER('Test',Test[Arrival]="Early"),Test[Arrival])
Early % = [early]/COUNTAX(Test,Test[Arrival])
late = COUNTAX(FILTER('Test',Test[Arrival]="late"),Test[Arrival])
Late % = [late]/COUNTAX(Test,Test[Arrival])
 
Change format of percent measures to percentage in modelling tab and format.
 
Thanks & regards,
Pravin Wattamwar
www.linkedin.com/in/pravin-p-wattamwar

If I resolve your problem Mark it as a solution and give kudos.
 
 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Use below measures,

 

early = COUNTAX(FILTER('Test',Test[Arrival]="Early"),Test[Arrival])
Early % = [early]/COUNTAX(Test,Test[Arrival])
late = COUNTAX(FILTER('Test',Test[Arrival]="late"),Test[Arrival])
Late % = [late]/COUNTAX(Test,Test[Arrival])
 
Change format of percent measures to percentage in modelling tab and format.
 
Thanks & regards,
Pravin Wattamwar
www.linkedin.com/in/pravin-p-wattamwar

If I resolve your problem Mark it as a solution and give kudos.
 
 

Thank you very much.
Your solution worked as expected.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.