Forum Discussion
MdxScript(Model)(17,3) calculation error
- 1 year ago
Yes, Int64 is the limit. Embarrassingly Power BI does not support Int128.
Have you tried the logarithm approach?
RANDBETWEEN(1,1000)/100
That can result in numbers greater than 1, worst case for all 10000 IDs. That can easily exceed the Int64 limits of Power BI when you multiply them. Change your calculation so that they all are below 1 (or use logarithms).
Many to most of the values will be over 1, as this is a calculation using a measure of time in days (datediff on hours, divided by 24 to get a decimal day value), with typical values between 1 and 3, but sometimes have much longer outliers.
Is Int64 the largest number it can deal with? I can't pre-calculate in a practical view in a SQL query, as the aggregation is dynamic (individual bucket, group of buckets, all my buckets).
I've thought of running an R script and pulling it back, storing as text if needed, but I'm not the Power BI admin, and that will be a slog that I need at least a temporary work around for.
- lbendlin1 year agoSuper User
Yes, Int64 is the limit. Embarrassingly Power BI does not support Int128.
Have you tried the logarithm approach?