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

Some values calculated correctly some are infinity

I have this weird thing I do not understand where a formula sometimes calculates infinity when I expect a percentage. 

 

MirceaAJ_0-1722960160528.png

FileSizeCompliancePercentage = 'Table'[Attributes.Size] / [MaxFileSizeNumber]
 
MaxFileSizeNumber is a measure saved as whole number. Attributes.Size is a column with data type decimal number. 

Any ideas how to troubleshoot this ?
1 ACCEPTED SOLUTION
vanessafvg
Super User
Super User

are you creating a column?  create a measure

 

FileSizeCompliancePercentage =
DIVIDE ( sum('Table'[Attributes.Size]), [MaxFileSizeNumber], 0 )





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




View solution in original post

3 REPLIES 3
MirceaAJ
Helper I
Helper I

well that was easy. Thanks for the help. What is the logic behind the weird behaviour ?

you are a creating a column and mixing that with a measure.   Firstly its unnecessary to do that, calculated columns aren't very performant either.  Basically though you are trying to divide a constant by a measure, the measure is aggregated and therefore has a different context.

 

if you have the values on the row anyway a measure will pick up the context and return the correct answer.    not sure if that explains it well enough. 





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




vanessafvg
Super User
Super User

are you creating a column?  create a measure

 

FileSizeCompliancePercentage =
DIVIDE ( sum('Table'[Attributes.Size]), [MaxFileSizeNumber], 0 )





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




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