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
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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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