Forum Discussion

Prakest's avatar
Prakest
Frequent Visitor
3 years ago

Formula not calculating at the aggregated/matrix level

I'm having an issue where the if statement does not seem to recognize a comparison across multiple columns at an aggregated level. If all GA, Salesflash, WF, and ARR columns are the same it should return "Equivalent", otherwise it should return "Different".

Here's a snippet of the data:

 

This is how I accomplished it when the data was in a different format (pre aggregregated), but it no longer works after additional fields were added. I tried adding helper columns as seen in the first screenshot but that made no difference.

 

AmountCheck1 = 
IF([GA_Amt]=[Totaldiv4]
|| [WF_Amt]=[Totaldiv4]
|| [SalesFlash_Amt]=[Totaldiv4]
|| [ARR_Amt]=[Totaldiv4], "Equivalent",
"Difference")

 

 

6 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Prakest ,

    Could you share just a sample data with maybe 10 rows of data ? I can't identify whether the issue is coming from the calculated column or the matrix

    BR

    • Prakest's avatar
      Prakest
      Frequent Visitor

      Anonymous 

      edit: To clarify, this is raw data

      Here's a data sample:

      Product IdOrderDefault Sale DateRev Prod Category based OTSales Order Line One TimePrior Yr AdjNew vs RenSalesFlash_AmtARR_AmtGA_AmtWF_Amt
      1O-0926/21/2022Y NRenewal     40,047     40,047     40,047 
      1O-0926/21/2022 NNRenewal      40,047     40,047 
      1O-0926/21/2022 NNRenewal        40,047
      1O-0926/21/2022 NNRenewal      (40,047)
      1O-0926/21/2022 NNRenewal        40,047
      2O-1206/22/2022 NNNew     15,400     15,400     15,400 
      3O-1206/22/2022Y NNew     12,000   
      3O-1206/22/2022 NNNew      12,000     12,000 
      4O-3446/29/2022 NNNew        3,000        3,000        3,000 
      4O-3446/29/2022 NNNew           3,000
      5O-3446/29/2022 NNNew        3,325        3,325        3,325 
      5O-3446/29/2022 NNNew           3,325
      6O-3446/29/2022 NNNew   122,155   122,155   122,155 
      6O-3446/29/2022 NNNew      122,155
      7O-3446/29/2022Y NNew   150,000   
      7O-3446/29/2022 NNNew    150,000   150,000 
      7O-3446/29/2022 NNNew      150,000
      8O-3446/29/2022 NNNew     91,500     91,500     91,500 
      8O-3446/29/2022 NNNew        91,500
      9O-3446/29/2022 NNNew     45,750     45,750     45,750 
      9O-3446/29/2022 NNNew        45,750
      10O-3446/29/2022 NNNew     45,750     45,750     45,750 
      10O-3446/29/2022 NNNew        45,750
      • Anonymous's avatar
        Anonymous
        Not applicable

        Prakest ,

        may i know how you derived totaldiv4?