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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
mh2587
Super User
Super User

CALCULATED COLUMN/MEASURE VALUE NOT GIVING THE CORRECT RESULT

Hi I hope you people doing well 
I am facing very weird issue  regarding division as dividing calculated column by measure value the output is incorrect

CC Cases Ratio =
var CCLT = 'CRM Log'[CC Lead Time]
var CCCases = [CC Cases]
var _Divide = DIVIDE(CCLT,CCCases,0)
return _Divide
RATIO.PNG

Did I answer your question? If so, please mark my post as a solution!


Proud to be a Super User!




LinkedIn Icon
Muhammad Hasnain



1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@mh2587 , You should create a measure, not a column, like

 

CC Cases Ratio =
var CCLT = Sum('CRM Log'[CC Lead Time]) //Assume this is a column
var CCCases = [CC Cases] //Assume this is a measure
var _Divide = DIVIDE(CCLT,CCCases,0)
return _Divide

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

4 REPLIES 4
mh2587
Super User
Super User

@amitchandak  @parry2k  @smpa01  please you guys help me in this thank you


Did I answer your question? If so, please mark my post as a solution!


Proud to be a Super User!




LinkedIn Icon
Muhammad Hasnain



amitchandak
Super User
Super User

@mh2587 , You should create a measure, not a column, like

 

CC Cases Ratio =
var CCLT = Sum('CRM Log'[CC Lead Time]) //Assume this is a column
var CCCases = [CC Cases] //Assume this is a measure
var _Divide = DIVIDE(CCLT,CCCases,0)
return _Divide

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thank you brother would you please help me why the value is incorrect in calculated column for the learning purpose


Did I answer your question? If so, please mark my post as a solution!


Proud to be a Super User!




LinkedIn Icon
Muhammad Hasnain



@mh2587 , for that need to see what you want 


Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

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