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 looking for a way to add a constant line - 5% dotted line in my combo chart ' Line & Clustered column chart'
Combo chart configuration.
Chart would like this:-
Currently the analytics pane for combo chart doesn't contain a "+ Constant" to let me draw a 5% constant line.
However, for other visuals - like regular bar chart, it comes with 'Constant line' feature.
Which gives me the result I need on the 5% dotted constant line
How to achive a constant line for ComboChart above?
This is awesome, It worked perfectly Thanks
Had tried the measure approach as well.
Since the primary Y axis is %, and 2nd Axis is number. (2 different unit of measurements)
If I add a "measure 5" to my combo line chart. it will become like this:- which is not what I want.
Black bars = 5%
@akiko_lim You should be able to move it to the line values:
Respectfully,
Zoe Douglas (DataZoe)
Follow me on LinkedIn at https://www.linkedin.com/in/zoedouglas-data
See my reports and blog at https://www.datazoepowerbi.com/
Thanks DataZoe for your quick reply. very much appreciated.
If I move the 5%line to line Values, my 2nd Y-Axis UoM (unit of measure) will not be correct.
I am mixing Pecent data (5%) line with other # of Test (whole number) . My chart will not be correct.
See below, 2000%
@Anonymous oh you are right, I mis-read. I thought your %'s were on the line, not the columns. And you did such a good job explaining it with screenshots too -- my apologies! I'll give it some more thought, but I'm not sure how you would do this with the %'s on the bars.
Respectfully,
Zoe Douglas (DataZoe)
Follow me on LinkedIn at https://www.linkedin.com/in/zoedouglas-data
See my reports and blog at https://www.datazoepowerbi.com/
If your LINE Axis values are FIXED, you can calculate based on the position of the Bars, the correct Value of 5% to hard code (guessing around '5%Line = 80' or so based on the line axis) to fake this.... But if your Line Axis is variable based on the data selected, this work-around won't work.
OR... do you REALLY want to SUM all values of the LINE, then divide by the number of days, then divid by .05 to Calculate the true 5% mark compared to the Top Line? If there's possibily some true relation between the Bar and Lines?
FOrrest
Proud to give back to the community!
Thank You!
In my case here, the 5% line is a "reference point" for the % values on Bar. - which is my primary Y-Axis. (left axis)
5% line has nothing to do with the other lines being plotted on 2nd Y-Axis (right axis).
I don't recall if you said your right Axis was fixed or variable? If It's fixed, I created this measure
5%Line = 180
to approximate the 5% goal... This only works if the right Axis (Line #'s) are fixed (not based on a filter or selection), or you want to re-adjust this measure every time you update the report?
If it's variable, I have another idea to Calcuate the difference betewen the MAX and MIN % values shown (to determine the scale of the bars), then use 5% of that difference to MULTIPLY by the lowest LINE Value.... I'll try this next if the above work-around doesn't help...
Proud to give back to the community!
Thank You!
Hi fhill,
thanks for your suggestion below. To create the calc line would work to provide "visual clues". However, the tooltip when you hover the cursor over it will not be accurate. Won't show 5% line.
Alternatively, to switch the data around, let the % be on the 2nd Y. Let me verify with product manager if this visual will be meaningful to user.
Appreciate your inputs! it's been very helpful to have other folks comment to verify I didn't miss any features available with this native chart.
You are right about the Tool Tip for sure. If they decide they are OK it showing a fake value instead of '5%'. Here's the math to figure out your calculated line regardless of the values for Bars or Lines. ** HOWEVER, All Axis 'Start' values need to be set to 0! **
** P.S. I do things very broken apart to show my thoughts / steps... Feel Free to condense this into one Measure if wanted / needed. ** (Or can someone else do so for us?)
Proud to give back to the community!
Thank You!
Thanks fhill for your sharing the DAX on your solution you proposed. Got it. Thanks again. 🙂
@Anonymous You could create a measure:
Constant 5% = 0.05
then add that as an additional line in the combo chart with your existing % Outliers measure. You can then format it to be red and dashed.
Respectfully,
Zoe Douglas (DataZoe)
Follow me on LinkedIn at https://www.linkedin.com/in/zoedouglas-data
See my reports and blog at https://www.datazoepowerbi.com/
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 |
---|---|
78 | |
76 | |
59 | |
35 | |
33 |
User | Count |
---|---|
100 | |
62 | |
56 | |
47 | |
41 |