Forum Discussion

MNM's avatar
MNM
Frequent Visitor
3 years ago
Solved

% PER ROW FROM GRAND TOTAL

Hi Everyone,

Good day! 

I am trying to get the % per row from grand total  for the difference of target and cleared. However, it seems to get the % from the total per region instead the % from grand total. Need your expertise on this please.

 

my formula :

Cleared Past Due % =
('TS Raw'[Cleared] / 'TS Raw'[PREV DAY TARGET])
 
PREV DAY TARGET =
CALCULATE('TS Raw'[Target 90%], PREVIOUSDAY('Calendar Table'[Date]))
 
Cleared =
VAR PrevDate =
    PREVIOUSDAY('Calendar Table'[Date])
VAR PrevSum =
    CALCULATE(
        'TS Raw'[Forward Aging Total Collectibles],
        'Calendar Table'[Date] = PrevDate
        )
RETURN
    IF(
        PrevSum <> 0 && 'TS Raw'[Forward Aging Total Collectibles] <> 0,
        PrevSum - 'TS Raw'[Forward Aging Total Collectibles]
    )

 

 

Thank you in advance.