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

Roundup a calculated column that has percentage values

Hi, I'm hoping someone can help with the below query i have.

I am trying to create a new column in a Dataset table with a basic "ROUNDUP" calculation on another calculated column that has precentages as values, but i keep getting the error message below:

"An argument of function "ROUNDUP" has the wrong data type or the result is too large or too small

 

Does anyone have any ideas on how to resolve?

 

Cheers

1 ACCEPTED SOLUTION
Anonymous
Not applicable

For anyone interested, i managed to solve this myself through trial and error. I created a calculated measure in a report (rather than a calculated column in a table) and used MROUND on that measure, this appears to be working 👍

View solution in original post

6 REPLIES 6
StoneRidge
Frequent Visitor

I am trying to get a 'cost to market' value by multiplying RND_Margin Loss with Qty on Hand.  The values are correct.  But when I try to run the report for a larger date period or more than a few items at a time, PBI presents an error message "Analysis Services: 'An argument of function 'ROUNDUP' has the wrong data type or the result is too large or too small".   I am using an Azure data model with pbi views. I cannot add a column.  My options are to figure this out with DAX.   Below are details and screen shots 

StoneRidge_0-1724089343765.png

Measures are:  

Standard Gross Profit = [Standard Cost] - [Sales Amount]

Margin Loss = [Standard Gross Profit] [Standard Cost Amt]

RND_ Margin Loss = ROUND([Margin Loss],2)
Cost to Market =  [Qty on Hand] [RND_ Margin Loss]

 

I checked all the data fields are fixed decimals with 2 decimals

Has anyone else had this type of problem with rounding a percentage value?  

Anonymous
Not applicable

For anyone interested, i managed to solve this myself through trial and error. I created a calculated measure in a report (rather than a calculated column in a table) and used MROUND on that measure, this appears to be working 👍

amitchandak
Super User
Super User

@Anonymous , How you have used ?

 

ROUNDUP([Numeric column], 1)

 

Tutorial Series for Beginners Part 61: Round, Roundup, and Rounddown: https://www.youtube.com/watch?v=dwMb6zctV2Y&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=61

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

Sadly this does not work. The calculated column that i am trying to round has blanks in it as well as percentage values, not sure if that is an issue?
It seems to be a specific issue with trying to use any ROUND function on this column

@Anonymous ,
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

hey @amitchandak thanks for getting back to me. I have included below an idea of what i am trying to achieve. The final column is the one that i am getting an error message for:

KP6_0-1644966942197.png

This is the error i am receiving:

KP6_1-1644966982259.png

 

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.

Top Solution Authors
Top Kudoed Authors