Forum Discussion

Kletzy's avatar
Kletzy
Advocate III
7 years ago

dax

Good day

 

I'm looking for assistanceplease  with a measure that I require to return the "Cost"  (sum of Cost) where TableA[Allocation month] = TableB[Report date] less one month. Basically I am looking to return the bold numbers below (sum of Cost at each date) in a format that I can use as a line on a chart (with the allocation month as the axis):

 

  Report Date
  JanFebMarAprMayJun
 Jan246253220401145188
 Feb 473267326170239341
 Mar285190492349191381
Allocation monthApr212152339280395110
 May213118105494103331
 Jun166356225395366424
 Jul366253260318462467
 Aug362372243490249213
 Sep326283368334202240
 Oct328484452295413465
 Nov162219271415402172
 Dec270218232200371439

 

Thank you for any help

1 Reply

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Kletzy,

     

    Please share some sample data for test.

     

    Regards,

    Xiaoxin Sheng