Forum Discussion

hb_rvp's avatar
hb_rvp
Frequent Visitor
1 year ago
Solved

subtotals not calculating correctly where formula picks up budget sales if actual is null

Weekly Sales sample   I basically just did an if condition   IF(     ISBLANK([YTD TY Actual]),     [YTD TY Budget],     [YTD TY Actual]))   Please help what should be the correct one. ...
  • Anonymous's avatar
    Anonymous
    1 year ago

    Hi hb_rvp 

     

    Please try this:

    Here I change the *NewColumn measure:

    *NewColumn =
    SUMX (
        SUMMARIZE ( 'Sales Table', [Month], [Day] ),
        IF ( ISBLANK ( [*Actual] ), [*Budget], [*Actual] )
    )
    

    The result is as follow:

     

     

    Best Regards

    Zhengdong Xu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.