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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
Anonymous
Not applicable

MdxScript(Model) Calculation error in measure

Hi

 

I am receiving this error when I try to create a Table visual in PowerBI Desktop.

 

MdxScript(Model) (186, 59) Calculation error in measure...The result of a conversion or arithmetic operation is either too large or too small. - see below for detail of error.

 

The visual is a table with a dimension "client" and the measure expression is ( cos/sales ). It should be a simple visual. Not sure if it may be because of "cos" being calculated from two different facttables.. or perhaps a tweak is required?

I am using a Tabular Model in Visual Studio/Analysis Services and LiveConnection in Power BI Desktop.

Please help 🙂

 

Error Message:
MdxScript(Model) (186, 59) Calculation error in measure 'Measures - KPIs'[Loss Ratio - Gross - Cumulative]: The result of a conversion or arithmetic operation is either too large or too small.

4 REPLIES 4
amitchandak
Super User
Super User

@Anonymous , is kind of divide by zero error, cos/sales 

Please make sure you have handled sales =0

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

Hi @amitchandak 

 

Please can you assist with how to handle sales = 0?

 

this is what I have to address the issue you mentioned:

**Loss Ratio - Gross - Cumulative:=**
DIVIDE([Cumulative CLAIMS INCURRED ALL],[Cumulative GWP ALL],0)

 

Anonymous
Not applicable

Hi @amitchandak Amit Thank you for your response. The table contains two columns. Year (DIM_Calendar) and Ratio. Ratio is calculated as "Cost" / "Sales" using the DIVIDE function. Cost expression is sum(DIM_Cost[Amount) and Sales expression is sum(DIM_Sales[Amount]. The table works when I use the Year dimension, but not when I use Client party DIM_Parties(Client).
Anonymous
Not applicable

Hi @amitchandak 

Thank you for your response.

The table contains two columns. Year (DIM_Calendar) and Ratio.
Ratio is calculated as "Cost" / "Sales" using the DIVIDE function.
Cost expression is sum(DIM_Cost[Amount) and Sales expression is sum(DIM_Sales[Amount].

The table works when I use the Year dimension, but not when I use Client party DIM_Parties(Client).

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.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

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

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.

Top Solution Authors