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

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.

Reply
deannag
Helper I
Helper I

How do I get a bar graph with two lines?

Hi,

I have a few questions:

 

First, is there no bar graph that can have two lines plotted on it? Also, I was able to sort the x value descending on other visuals, but not for the line and clustered column chart. I'm trying to plot ticket prices/sales by days out from the game, and this is what I want to replicate from Excel:

deannag_3-1692649275102.png

Daily volume being quantity of tickets sold, cumulative ATP (avg ticket price), and then sell-through being the quantity sold/total ticket quantity. It should be straightforward, but why does it seem like Power Bi makes things more complicated? This is what I have on Power Bi:

deannag_6-1692650148154.png

(not filtered for individual team)

 

Here are my columns/measures:

Days Out = DATEDIFF(tablename[sale_date_local], tablename[event_date], DAY)
Quantity Sold = CALCULATE(count(tablename[barcode]), FILTER('tablename', tablename[unit_price] > 0), FILTER(tablename, NOT(ISBLANK(tablename[sale_date]))))
ATP = CALCULATE(AVERAGE(tablename[unit_price]), FILTER(tablename, not(isblank(tablename[unit_price]))))
Overall Sell-Through draft = 
CALCULATE([Quantity Sold] / ([Total Ticket Quantity]))
 
Could anyone help nme out with my sell-through percentage and ATP? It should be a smoother line. I also need to sort days out descending, 30-0 and not 0-30. Also, whenever I try to use two lines on this visual (line and clustered column chart) one of the lines is really weird.
 
 
Thanks!
 
2 REPLIES 2
amitchandak
Super User
Super User

@deannag , I power bi the lines can not use both axes. This means both lines would be there on Y-axis or secondary y-axis. 

For smooth line, there is an option in the latest release

 

amitchandak_0-1692666156650.png

 

 

How could I sort my days out descending? Normally it's the ... in the top right of the visual, but not with this combo chart for some reason

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.