ficklelife
New Member
- Joined
- Aug 17, 2015
- Messages
- 4
I have a table Sales which contains data such as:
[TABLE="width: 500"]
<tbody>[TR]
[TD]id[/TD]
[TD]date[/TD]
[TD]name[/TD]
[TD]Amount[/TD]
[/TR]
[TR]
[TD]123[/TD]
[TD]2016-04-21 14:22[/TD]
[TD]Jims Nuts[/TD]
[TD]200[/TD]
[/TR]
</tbody>[/TABLE]
I have visualised my weekly sales by creating a new column with the formula
which gives me a column with 1,2,3 etc based on the week it was sold based on date column.
I would then like to visualise in a waterfall chart the deltas week to week in sales - e.g. Sales in week 3 compared to week 2 is 20k deficit, week 4 compared to 3 is 30k up, etc... How would I write a DAX query to visualise this data?
[TABLE="width: 500"]
<tbody>[TR]
[TD]id[/TD]
[TD]date[/TD]
[TD]name[/TD]
[TD]Amount[/TD]
[/TR]
[TR]
[TD]123[/TD]
[TD]2016-04-21 14:22[/TD]
[TD]Jims Nuts[/TD]
[TD]200[/TD]
[/TR]
</tbody>[/TABLE]
I have visualised my weekly sales by creating a new column with the formula
Code:
week_number = WEEKNUM('Sales'[date])
I would then like to visualise in a waterfall chart the deltas week to week in sales - e.g. Sales in week 3 compared to week 2 is 20k deficit, week 4 compared to 3 is 30k up, etc... How would I write a DAX query to visualise this data?