Skip to main content
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
PBIGuy25
New Contributor II

Is there a way to connect two columns in a clustered column chart with a calculated line?

I have a clustered column chart that looks at three aspects from a sale. Is there anyway I can show the difference between two columns and have that difference shown as a line wihtin the chart? See below for current and desired views.

 

Current

Before.png

Desired

After.png

2 REPLIES 2
BeaBF
Valued Contributor III

@PBIGuy25 Hi! no in this way it is not possible, but a workaround is to set constant lines and then add a card at the end of the barchart, in this way:

BeaBF_0-1758894276424.png


click on the graph and select:

BeaBF_1-1758894300419.png

 

BBF


๐Ÿ’ก Did I answer your question? Mark my post as a solution!

๐Ÿ‘ Kudos are appreciated

๐Ÿ”ฅ Proud to be a Super User!

Community News image 1920X1080.png

 

grazitti_sapna
Valued Contributor

Hi @PBIGuy25 

  1. Create a Dax to find diiference between two columns
    GrossVsDiscount_Diff = SUM(Sales[GrossValue]) - SUM(Sales[Discount])
  2. Add a Line and Clustered Column Chart.
  3. Go to Visualizations โ†’ Line and Clustered Column Chart.
  4. Put your three measures (Gross Value, Discount, Profit) in the Column values.
  5. Put your new difference measure in the Line values.
    This way, your chart will show all three metrics as bars and the variance as a line.

grazitti_sapna_0-1759165006540.png

๐ŸŒŸ I hope this solution helps you unlock your Power BI potential! If you found it helpful, click 'Mark as Solution' to guide others toward the answers they need.

๐Ÿ’ก Love the effort? Drop the kudos! Your appreciation fuels community spirit and innovation.

๐ŸŽ– As a proud SuperUser and Microsoft Partner, weโ€™re here to empower your data journey and the Power BI Community at large.

๐Ÿ”— Curious to explore more? [Discover here].

Letโ€™s keep building smarter solutions together!

Helpful resources

Announcements
Top Solution Authors
Users online (11,086)