Forum Discussion

WillEyedowin's avatar
WillEyedowin
Frequent Visitor
7 years ago
Solved

WEEKNUM Relative Date Filtering

Hello All,   I would like to filter my entire report to include all dates(weeknum's) up until the week before current.   E.g. I want my report to include WEEKNUMS 1 through 45 but not week 46 if ...
  • Ashish_Mathur's avatar
    Ashish_Mathur
    7 years ago

    Hi,

     

    Does this measure work?

     

    Measure = if(ISBLANK(SUM(sold[Quantity Sold])),BLANK(),1-DIVIDE(SUMX(RELATEDTABLE('sold'),[Quantity Sold]),SUMX(RELATEDTABLE('Dispatched'),[Quantity Delivered]),0))