Hi, i try to create a comparison for CY vs PY of the average of sales in a side by side bar chart.
where the period is handled by parameters.
i have made 4 calculations for this :
1.to count the average sales
2.to get the current year's value
3..to get the previous year's value
4.to get the latest year that was existed in the data source
i want that my chart only shows the current period (from Jan to selected month parameter) with the previous year's bar beside the current year's bar for the same month.
i have succeeded creating that chart if the measures is the sales, as shown below :
however, the PY data for the average sales are returned as NULL, as shown below :
any idea how to solve this issue?
really appreciate your help.
thanks
Ary
@Aryono Samarto
Hi, attached you will find an example workbook.
Hint, for the bar in bar I switched off the stack marks:
If this post resolves the question, would you be so kind to "Select as Best"?. This will help other users find the same answer/resolution and help community keep track of answered questions. Thank you.
Regards,
Diego Martinez
Tableau Visionary and Forums Ambassador