Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I am a brand new user to the platform, so apologies in advance if I've missed something obvious. I am attempting to set up a column chart showing total expenses per period (year, month, quarter) based on a selected time range. While this part isn't an issue, I am also attempting to set up a trend line that will run through the chart whlie showing YoY change from the previous year's matching unit (January 2023 vs. January 2022).
I've set up measures that calculate the total expenses for the selected period, total expenses for the same period from the previous year, and a third that calculates YoY percentage increase or decrease based on the previous two. Everything seems to work fine with those, numbers all match up with what they should be. However, when setting that up as the line y-axis variable, my line appears as below:
I can see the issue is that it's taking these double digit percentages and showing them as integers, which on a y-axis scaling into the tens of thousands essentially has them all down at 0. Is there a way for me to fix this? I assume this isn't data related and rather an option I'm not aware of in the visualization settings, but I can provide further info if needed.
Solved! Go to Solution.
Awesome - thank you! Anytime you do division, use the DIVIDE DAX function, you will have better performance. For the YoY% you can utilize the quick measure. In your data pane, go to your measure Total Cost, click the 3 dots, click New quick measure.
Once that selection opens up you can choose the Year-over-year-change option:
And, add your date from the date table to the date well, then click add:
You'll wind up with DAX measure with this for the DAX (assuming your date table is marked as a date table, if it's not then your date portion of the measure will have 'Date'[date].[Date]) :
DIVIDE function (DAX) - DAX | Microsoft Learn
Proud to be a Super User! | |
Can you share your DAX for the YoY measure? Also, I would suggust creating an explicit measure for Cost instead of using the implicit one currently in the visual.
http://powerbiwithme.com/2023/10/25/the-explicit-implicit-measure-edition/
Proud to be a Super User! | |
Thank you for the resource! I forgot to change it over to the one I've calculated, so thanks for the reminder on that as well.
These are the 3 DAX functions at play here :
Awesome - thank you! Anytime you do division, use the DIVIDE DAX function, you will have better performance. For the YoY% you can utilize the quick measure. In your data pane, go to your measure Total Cost, click the 3 dots, click New quick measure.
Once that selection opens up you can choose the Year-over-year-change option:
And, add your date from the date table to the date well, then click add:
You'll wind up with DAX measure with this for the DAX (assuming your date table is marked as a date table, if it's not then your date portion of the measure will have 'Date'[date].[Date]) :
DIVIDE function (DAX) - DAX | Microsoft Learn
Proud to be a Super User! | |
That did it! Thank you so much for being so thorough and providing sources. Tremendous help.
You're very welcome! I'm happy to help!
Proud to be a Super User! | |
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
79 | |
73 | |
58 | |
36 | |
32 |
User | Count |
---|---|
90 | |
60 | |
60 | |
49 | |
45 |