March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Im trying to create a line chart to compare no of tickets raised monthly over the two years. Ive tried to do it. I cant do it, really need some advice here.
Thanks
Solved! Go to Solution.
Hi @michellerob2000 ,
My question is, if you compare the number of work orders for two years on the same axis, how should the x-axis be determined? Is it possible to explain this so that I can answer it for you as soon as possible.
Tickets_CurrentYear =
CALCULATE(
SUM(Tickets[Tickets]),
YEAR(Tickets[Date]) = YEAR(TODAY())
)
Tickets_LastYear =
CALCULATE(
SUM(Tickets[Tickets]),
YEAR(Tickets[Date]) = YEAR(TODAY()) - 1
)
Best Regards,
Adamk Kong
Hi @michellerob2000 ,
My question is, if you compare the number of work orders for two years on the same axis, how should the x-axis be determined? Is it possible to explain this so that I can answer it for you as soon as possible.
Tickets_CurrentYear =
CALCULATE(
SUM(Tickets[Tickets]),
YEAR(Tickets[Date]) = YEAR(TODAY())
)
Tickets_LastYear =
CALCULATE(
SUM(Tickets[Tickets]),
YEAR(Tickets[Date]) = YEAR(TODAY()) - 1
)
Best Regards,
Adamk Kong
@michellerob2000 you need to add your ticket column into the Y axis.
I would put
Months in the X axis.
Years in the Legend.
TickedID or something else in the Y-axis to count.
If you are happy with this answer please mark as a solution for others to find !
Kudos are always appreciated! Check out our free Power BI video courses.
Since the data is the same, could you Append the two tables together in the Query Editor (Transform Data)
Then you could have a chart with sales in Y axus, the years in the legend and Months in the X axis 🙂
If you are happy with this answer please mark as a solution for others to find !
Kudos are always appreciated! Check out our free Power BI video courses.
Ive managed to append so thanks, but then i need to add the createddate from the 2023 table (should have 2024 data in tis too) but it doesnt work
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
125 | |
81 | |
63 | |
54 | |
42 |
User | Count |
---|---|
194 | |
106 | |
90 | |
63 | |
51 |