SUM Lastest Data

HALLO ALL,

I want to sum data in the [SKU] column with a data filter based on input data [NAMA_MDS] column and the last data if [KODE_CUS_GT] has duplicated data, can anyone help me?

SUM(
SELECT(MERCH[SKU],
AND(
[KODE_MDS] = LOOKUP([_THISROW].[NAMA_MDS], “USER”, “USERNAME”, “USER ID”),
[MONTH([TANGGAL]) = MONTH(TODAY()),
(formula to get last data)
)
)
)
3X_f_5_f5bbf20e654b1958909ba9d377c9760186c44dc4.png

0 3 151
3 REPLIES 3

You might need to provide the complete table structure, and clarify:

  • if the snapshot is the MERCH table?
  • Where is the [KODE_MDS]?

There must be a [KODE_MDS] column on the left [NAME_MDS], but both are the same object

Sorry, but I still don’t understand. Maybe if you change the expression to match the column name, example is below:
3X_6_0_60247db64060a9b7655d8131ca0068a2b7bba88e.png

and based on the snapshot, I could not see any duplicated value for the [KODE_CUS_GT], I might be wrong, but it seems they are unique.

Top Labels in this Space