Forum Discussion
Weekly graph data and YTD data in one chart
- 6 years ago
Hi,
Please try to create a new table by Enter Data:
Create the relationship with original table by one-to-many:
Then create a measure:
Measure 2 = IF(MAX('Table (2)'[Month])="TotalAverage",CALCULATE(SUM('Table'[Sales]),ALLSELECTED('Table')),SUM('Table'[Sales]))Choose the new table's [Month] and this measure as clustered column chart.
If you want to sort Month from 'January' to 'December', please add an index column in Query Editor.
After Apply&Close, sort [Month] by [Index], the result shows:
Here is my test pbix file:
Hope this helps.
Best Regards,
Giotto Zhi
Hello,
Thanks for the hint but it should be altered slighly. What I need is cummulative data to be shown AFTER December. So if we have data for Jan (239) and Feb (260) at the end after Dec. There should be new YTD column showing 499. like in the pic below:
Hi,
Please try to create a new table by Enter Data:
Create the relationship with original table by one-to-many:
Then create a measure:
Measure 2 = IF(MAX('Table (2)'[Month])="TotalAverage",CALCULATE(SUM('Table'[Sales]),ALLSELECTED('Table')),SUM('Table'[Sales]))Choose the new table's [Month] and this measure as clustered column chart.
If you want to sort Month from 'January' to 'December', please add an index column in Query Editor.
After Apply&Close, sort [Month] by [Index], the result shows:
Here is my test pbix file:
Hope this helps.
Best Regards,
Giotto Zhi
- viji_26113 years agoNew Member
can i get video of steps how its done