Forum Discussion

Dicko's avatar
Dicko
Helper II
4 years ago
Solved

Aggregate by date

I have two tables:

Products (sell date is type date)

idsell dateamount
121 January 20211000
1

21 February 2021

1100
25 January 20212000
25 February 20212100

 

Targets (date is type date)

dateamount
1 January 20212500
1 February 20213500

 

I need to create a visual that shows the results against the targets. Something like

monthtargetresult
January 202125003000
February 202135003200

 

The products have different sell dates (for each product always on the same date of the month) and I need to aggregate by month.

How do I do this?

Thanks.

  • Dicko Seems like you could create a relationship between Targets and Products on Date fields. Then create a table visual using Date from Targets, Amount from Targets and SUM(Products[result]).

1 Reply

  • Greg_Deckler's avatar
    Greg_Deckler
    Community Champion

    Dicko Seems like you could create a relationship between Targets and Products on Date fields. Then create a table visual using Date from Targets, Amount from Targets and SUM(Products[result]).