Forum Discussion
Raji001
2 years agoNew Member
alculated Measure with Variable and if condition
Hi All @amitchandak @Ritaf1983 @Ashish_Mathur @Greg_Deckler I'm trying to write a dax query with the following requirement. I wanted to calculated the no. of pages used for each machin...
- 2 years ago
pls try this
Column =VAR _last=maxx(FILTER('Table','Table'[MachineName]=EARLIER('Table'[MachineName])&&'Table'[DateReportRun]<EARLIER('Table'[DateReportRun])),'Table'[DateReportRun])return if(ISBLANK(_last),'Table'[PagesUsed],'Table'[PagesUsed]-maxx(FILTER('Table','Table'[DateReportRun]=_last&&'Table'[MachineName]=EARLIER('Table'[MachineName])),'Table'[PagesUsed]))
rbangari001
2 years agoFrequent Visitor
Thank you somuch. It worked.
ryan_mayu
2 years agoSuper User
you are welcome