Forum Discussion
Group Daily Target by Month and compare Weekly Sales
Anonymous,
Try below measures.
Target Cummulative by Month =
CALCULATE(
SUM(Table1[Target]),
FILTER(ALLEXCEPT(Table1, Table1[Month]), Table1[Week] <= Table1[Week])
)
New Percentage =
MIN(Table1[Sales]) / [Target Cummulative by Month]
(Format the above as Percentage)
Hope this helps.
If this solves your problem please mark as solution.
- Anonymous8 years agoNot applicable
Thanks for replying. It works in the table format using dates from the target table. However I need to use the Calendar table and in a line chart that displays by week (not month), however these are what I'm finding. Could this be an issue with my data model?
I have the Target table linked to my Calendar table (by date which works) and the target table linked to my 'Master Store Table' and both the Calendar and Master Store table are related to my data model? However note my targets work when summing the day without creating the measure you have as below which makes me think it's not the model but the calc? See below for reference.