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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
jakobcf4
Frequent Visitor

Handling infinity value

Hi, friends!

Please, help me in my issue: I want to calculate the percent of fee in our company, but after calculation, I see only Infinity or Nan.

Could you please, clarify the reasons for this problem?

Thank you in advance!

1 ACCEPTED SOLUTION



@jakobcf4

Thanks for sharing your pbix. I think I've found the reason. It is a calculated column in your case, and the field dz or grs both can be 0, so you always get 0 or infinity. In you case, instead of calculated column, create a measure instead.

Measure = DIVIDE(sum(t3[dz]),sum(t3[grs]))

Capture.PNG

View solution in original post

9 REPLIES 9
Anonymous
Not applicable

Are you not using the DIVIDE() function?

Hi!

 

When I use this function,  I see only "0" in results.


@jakobcf4 wrote:

Hi!

 

When I use this function,  I see only "0" in results.


@jakobcf4

To have a better understanding on your scenario, could you give more specific details, such as sample data and measure dax?

Yes, of course!

 

I use function DIVIDE([dz];[grs])*100 , when dz (debt sum) and grs(grossrev) are integer datas.

I've added a few screenshots for better understanding.

After this process I see 0 as a result.

1111111111111111.png

 

 

222222222222.png

 

 

 

@jakobcf4

OK. Could you try to convert the measure type to "decimal number" and change the precision(3 in below snapshot) accordingly?

Capture.PNG

Still, doesn't work.

77.png88.png

 

 


@jakobcf4 wrote:

Still, doesn't work.

77.png88.png

 

 


 

 

 

 

@jakobcf4

Is it possible to share the pbix file? You can mask sensitive data before sharing.



@jakobcf4

Thanks for sharing your pbix. I think I've found the reason. It is a calculated column in your case, and the field dz or grs both can be 0, so you always get 0 or infinity. In you case, instead of calculated column, create a measure instead.

Measure = DIVIDE(sum(t3[dz]),sum(t3[grs]))

Capture.PNG

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.