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
Green_Cloud
Helper I
Helper I

Average Conversion Rate while ignoring 0 value

Hi, I am trying to find the average planned to working hour conversation rate. But, When there is 0.00% converstion rate in any of the two months, I just need to show the conversion rate which is only available. For Example, for 'John' in the image below, the conversion rate should be 75.00% ignoring 0.00% from the month February.

Green_Cloud_1-1667713032792.png

Below is the PBI file-
https://drive.google.com/file/d/1MPwUn89yxiUYwSWpJKispl7LesBJQd9Y/view?usp=share_link

 

Below is the Dataset-

Green_Cloud_0-1667579952983.png

 

Thanks

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Green_Cloud ,

 

According to your description, here are my steps you can follow as a solution.

(1) My test data is the same as yours.

(2) We can create  a measure. 

Measure =

var _a = AVERAGEX(FILTER('Sample',[Working Hour]<>0&&[Month] in {"February","March"}),DIVIDE([Working Hour],[Planned Hour]))

return IF(ISBLANK(_a),0,_a)

(3) Then the result is as follows.

vtangjiemsft_0-1667812884865.png

Best Regards,

Neeko Tang

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

 

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @Green_Cloud ,

 

According to your description, here are my steps you can follow as a solution.

(1) My test data is the same as yours.

(2) We can create  a measure. 

Measure =

var _a = AVERAGEX(FILTER('Sample',[Working Hour]<>0&&[Month] in {"February","March"}),DIVIDE([Working Hour],[Planned Hour]))

return IF(ISBLANK(_a),0,_a)

(3) Then the result is as follows.

vtangjiemsft_0-1667812884865.png

Best Regards,

Neeko Tang

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

 

Thank You!

daXtreme
Solution Sage
Solution Sage

Turn 0's into blanks and DAX will take care of this automatically.

Tried but not working.

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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