dax measures
2 TopicsIdentify DAX Measures consuming too long to process
I have a tabular model on Visual Studio where data size is normal. It use to take 35-40 min to refresh 1 month back but someone added/modified few DAX Measures. Since then it is taking too long too refresh data. I want to indentify measures which are causing this issue. I have used these measures in Power BI reports too. How can I findout these measures so my model can be efficient and start refreshing normally.Solved1.5KViews0likes4CommentsLast week today - last year drill down to day results
Hei, I hope you can help me. I need to create a measure that brings data per day for Last week - last year. So far I've managed to bring data per week with this measure: LWTD LY := VAR CurrentWeek = MAX(Time[WeekNr]) VAR CurrentYear = MAX (Time[Year]) VAR PriorYear = IF(CurrentWeek =1, CurrentYear-1, CurrentYear) VAR PriorWeek = IF(CurrentWeek=1, CALCULATE( MAX(Time[WeekNr]),ALL(Time), Time[Year]=PriorYear),CurrentWeek-1) RETURN CALCULATE([Sales],ALL(Time), Time[Year]=PriorYear, Time[WeekNr]=PriorWeek) This gives me the following results where the totals of the week sums are correct. However what I need is to bring data per date, not only the total of the week. How can I achieve this?Solved807Views0likes1Comment