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

How to find the Percentage of based on the delay count

 

I am trying to find the  country percentage based on the Delay count .  I 

 

Country             DelayHour        

 

 Italy                      1
 Italy                      4

 Italy                      3

 France                  5 

 France                  2

 Spain                    1

 

Delay hour = CALCULATE ( COUNT ( 'Booking Acceptance'[Dealy in HRS] ), ALLEXCEPT('Booking Acceptance', 'Booking Acceptance'[Country] ) )

 

Percentage  = DIVIDE ( COUNT('Booking Acceptance'[Dealy in HRS]), [Delay hour ], 0)
 
this measure working with out slicer  if i select any country its showing  100% but i want  to seperate percentage for each country 

 

1 ACCEPTED SOLUTION
v-xiaotang
Community Support
Community Support

Hi @Anonymous 

Thanks for reaching out to us.

the results of COUNT('Booking Acceptance'[Dealy in HRS]) and [Delay hour] are same,

vxiaotang_0-1667809617872.png

vxiaotang_1-1667809645237.png

please try this,

Percentage = 
var _count= CALCULATE(COUNTROWS('Booking Acceptance'),ALL('Booking Acceptance'))
var _delay= [Delay hour]
return DIVIDE(_count,_delay,0)

vxiaotang_2-1667809941462.png

vxiaotang_3-1667809948727.png

 

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-xiaotang
Community Support
Community Support

Hi @Anonymous 

Thanks for reaching out to us.

the results of COUNT('Booking Acceptance'[Dealy in HRS]) and [Delay hour] are same,

vxiaotang_0-1667809617872.png

vxiaotang_1-1667809645237.png

please try this,

Percentage = 
var _count= CALCULATE(COUNTROWS('Booking Acceptance'),ALL('Booking Acceptance'))
var _delay= [Delay hour]
return DIVIDE(_count,_delay,0)

vxiaotang_2-1667809941462.png

vxiaotang_3-1667809948727.png

 

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Anonymous , Try like

 


Delay hour = CALCULATE ( COUNT ( 'Booking Acceptance'[Dealy in HRS] ), filter(allselected('Booking Acceptance'), 'Booking Acceptance'[Country] = max('Booking Acceptance'[Country]) ))

 

 

or

 

Delay hour = CALCULATE ( COUNT ( 'Booking Acceptance'[Dealy in HRS] ), filter(all('Booking Acceptance'), 'Booking Acceptance'[Country] = max('Booking Acceptance'[Country]) ))

 

 

If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

@amitchandak  sir i have tired this method when i convert  to Percentage not showing correct value . i have added sample test file for your reference . https://drive.google.com/file/d/1q5Q6cnr32qu60415R87FfzIlxqFSr8uh/view?usp=sharing 

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.