Forum Discussion
Straight Line Towards Monthly Goal
Hi all,
I am trying to create a graph that compares actuals vs monthly goals. The actuals are recorded as individual events with dates occuring throughout the month. The goals are on a seperate table which only provides one value for the overall monthly goal, the goal is the same, regarless of the month. I am specifically having an createing a line that starts at 0 on day 1 of the month and continues in a straight line towards the monthly goal on the final day of the month.
Here's a sketch of the graph that I am working to create:
The data is coming from 2 tables and a reference calendar I created in PowerBi
The first is sales on the day they occur (they can have multiple sales in one month)
The second is a table with a monthly goal:
This is joined to the first table according to the name.
I also created a calendar table
5 Replies
- lbendlin
Super User
Your line formula needs to be
DIVIDE([current day of month],[number of days in month],0) * [Monthly Goal]
- Ashish_Mathur
Super User
Hi,
Is it fair to assume that there will be a Year column in the Monthly goal table.
- AnonymousNot applicable
Unfortunatley no. There is just a single number under MonthlyGoal.
- Ashish_Mathur
Super User
Then what do you do when the year changes?
- AnonymousNot applicable
Very close to what I need. Unfortunately, I need it to be filterable according to Individual. Currently, the line stays the same regardless of whether a filter is applied. I trying LOOKUPVALUE, but using [individual] for search_value was not working. Thanks!