Forum Discussion

Xx_LAMORAK_xX's avatar
Xx_LAMORAK_xX
New Member
6 years ago
Solved

Line Chart w/ 3 Lines & Measure

I am trying to figure out the way to add a line chart visual with two y axis.  I need to show packages recieved and packages delivered on one axis and then on the second axis I want to show a comparison between the two using the following; [(Packages Received - Packages Delivered)/Packages Delivered].  I can get the first part of this pretty easily with a standard line chart, but I am having a difficult time creating the measure for the last part and placing it on its own axis.  Below is a sample from my data.  Thank you so much for your help!

 

FacilityPackagesReceipt/DeliveryMonth
Redbud11001RJan-20
Redbud12103DJan-20
Redbud12000RFeb-20
Redbud11542DFeb-20
Redbud10500RMar-20
Redbud10123DMar-20
Redbud9998RApr-20
Redbud11756DApr-20
Redbud11010RMay-20
Redbud12102DMay-20
Redbud10687RJun-20
Redbud11253DJun-20
Redbud9998RJul-20
Redbud11532DJul-20
Redbud12002RAug-20
Redbud12102DAug-20
Redbud12000RSep-20
Redbud10123DSep-20
Redbud10002ROct-20
Redbud9998DOct-20
Redbud12001RNov-20
Redbud11521DNov-20
Redbud12000RDec-20
Redbud13250DDec-20
  • parry2k's avatar
    parry2k
    6 years ago

    Xx_LAMORAK_xX add following 3 measure and on line chart add measures to the pane as shown below

     

    Packages Received = CALCULATE ( [Sum], Line[Receipt/Delivery] = "R" )
    
    Packages Delivered = CALCULATE ( [Sum], Line[Receipt/Delivery] = "D" )
    
    % Delivered = DIVIDE( [Packages Received] - [Packages Delivered], [Packages Delivered] )

     

     

    Ask anything Power BI. Book appointment for a free consultancy at https://www.perytus.com

4 Replies

  • Xx_LAMORAK_xX are you looking for something like this.   Would appreciate Kudos 🙂 if my solution helped.

     

    • Xx_LAMORAK_xX's avatar
      Xx_LAMORAK_xX
      New Member

      Thats exactly what I am lookign for!  How did you create that visual and what was the measure you used.  Thanks so much that was quick!

      • parry2k's avatar
        parry2k
        Super User

        Xx_LAMORAK_xX add following 3 measure and on line chart add measures to the pane as shown below

         

        Packages Received = CALCULATE ( [Sum], Line[Receipt/Delivery] = "R" )
        
        Packages Delivered = CALCULATE ( [Sum], Line[Receipt/Delivery] = "D" )
        
        % Delivered = DIVIDE( [Packages Received] - [Packages Delivered], [Packages Delivered] )

         

         

        Ask anything Power BI. Book appointment for a free consultancy at https://www.perytus.com