Forum Discussion
How do i display monthly and yearly data in one graph?
Hi jeo ,
I see that there are years and months in the screenshot you provided, but I'm not sure what the actual data looks like, so in my example I chose June (because June is near the middle of the year, and all my years contain January-December), and you can choose your own months that are near the middle of the year to display the data.
For example:
Measure =
IF(
(MAX('Table'[Year]) = 2024 && MAX('Table'[Month]) = "July") || (MAX('Table'[Year]) = 2025 && MAX('Table'[Month]) = "June"),
[Suggest WI(s)]
)
Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Anonymous ,
But my data is dynamic and not all the months will be included. And my Month and Year data type is not separated, they in a date-type data column.
Best Regards,
Jeo
- Anonymous2 years agoNot applicable
Hi jeo ,
If your dates are dynamic, it's going to be a pain in the ass and you'll probably need to manually specify the month each year. Other than that there is no other way.
If your data type is date-time, you can change 'Table'[Year] to 'Table'[Date]. [Year], change 'Table'[Month] to 'Table'[Date]. [Month]
Best Regards,
Dino Tao