Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I'm trying to compare incoming items from this year and last year. The visual I've been asked to provide is a line and clustered column chart where the X axis is "Month" and the Y is "Items". The columns need to be the total items for each month and the lines should be a YTD sum of the items. I have successfully done all of this except for getting both of the lines to show up on a single 12 month scale, I can only get the current year's YTD data to show up on the plot. I think my issue has something to do with how the Date hierarchy is interacting with things, but I can't figure out much past that.
If it helps, here's the DAX for the measures I'm using:
Last Year:
Solved! Go to Solution.
Hi @rdorsey
To use Time Intelligence Functions you need to add a Calendar table to your model and relate it to the "Shipped" table @ the DATE column. Then you will use DATEADD to get YTD_LastYear. like here
Regards
Amine Jerbi
If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook
Hi @rdorsey
To use Time Intelligence Functions you need to add a Calendar table to your model and relate it to the "Shipped" table @ the DATE column. Then you will use DATEADD to get YTD_LastYear. like here
Regards
Amine Jerbi
If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
106 | |
94 | |
77 | |
65 | |
53 |
User | Count |
---|---|
145 | |
105 | |
104 | |
90 | |
63 |