powerbi - DAX issue in Power BI, unable to use query with large data set for working out rolling 12 month -


i using dax query on power bi , works small data set not large data set wondering if there way of simplifying query?

i aiming achieve column rolling 12 month data within this.

rolling12cust cf =  if ( isblank (     calculate (         [totrev],         dateadd ( datetablecust[date], 0, month )     ) ), blank (), if (     isblank ( calculate (  [totrev],dateadd(lastdate(datetablecust[date]),-365,day)) ),     blank (),     calculate (         [customers],         datesbetween (             datetablecust[date] 

nextday(sameperiodlastyear(dateadd(lastdate(datetablecust[date]),-1,year))), dateadd(lastdate(datetablecust[date]),-1,year) ) ) ) )


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -