We have a REFGeography Hierarchy to 5 levels and a measure to divide CurrentSales/PreviousYrSales in our Tabular model. We usedIFERROR statement to avoid numerical errors. This works fine when we browse the tabular model through a pivot table report, but while trying to create reports in PowerView it tries to load for around 30 mins and then throws a generic error(Object Model is Changed, Try closing and Reopening the excel). We modified the statement using IF(), IsError(), SWITCH() but in vain all the statements led to the same performance problem.
Note: Without the logical functions, just a divide alone works fine: Measures[CurrentSales]/Measures[PreviousYrSales]
Attaching the list of tried formulas below
IFERROR(Measures[CurrentSales]/Measures[PreviousYrSales],0)
IF(Measures[PreviousYrSales]<>0,Measures[CurrentSales]/Measures[PreviousYrSales],0)
SWITCH(Measures[PreviousYrSales],0,0,BLANK(),0,Measures[CurrentSales]/Measures[PreviousYrSales])
Any help is greatly appreciated