Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Line Chart Showing Negative Axis

Hello Guys,

Need some help , so i have a quarter on quarter chart for a metric.
The problem is whenever i am selecting any slicer the chart shows 0 values because it doesnt has any value and also shows a negative Y axis.
Also the metric i have is this :

 

Previous Year Won Job Fee = 
var PrevYear = LEFT(MaxYear,4)-1 & "-" & RIGHT(MaxYear,4)-1
var year = [Prev YTD]
return
IF((CALCULATE(SUM('Pipeline Master'[Job Fee]), FILTER('Pipeline Master','Pipeline Master'[Status (groups)]="Won" && 'Pipeline Master'[Won FY] =year && 'Pipeline Master'[Is CGP] = "Yes"))/100000)=0,0,

//If not 0

CALCULATE(SUM('Pipeline Master'[Job Fee]), FILTER('Pipeline Master','Pipeline Master'[Status (groups)]="Won" &&'Pipeline Master'[Won FY]=year && 'Pipeline Master'[Is CGP] = "Yes"))/100000)

 

the "year" returns me "2019-2020".
Please let me know what i can do to resolve the negative axis and the 0s that are showing up. 

  • Anonymous ,

     

    Is there any data in column [Won FY]?

     

     

    Community Support Team _ Jimmy Tao

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

5 Replies

  • nandukrishnavs's avatar
    nandukrishnavs
    Community Champion

    Anonymous 

     

    You could fix the Y axis start position as 0. Then it will not show any negative axis.

     



    Did I answer your question? Mark my post as a solution!
    Appreciate with a kudos
    🙂

  • v-yuta-msft's avatar
    v-yuta-msft
    Community Support

    Anonymous ,

     

    It seems that condition "'Pipeline Master'[Won FY] = year" can't be met in your measure. In addtion, if you could share some sample data and give the expression of [MaxYear] I could do further analysis.

     

    You can set the start point from 0 to remove the negative Y-axis.

     

    Community Support Team _ Jimmy Tao

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

    • Anonymous's avatar
      Anonymous
      Not applicable

      v-yuta-msftThanks for your reply.
      I forgot to mention that only "year" is used the MaxYear and PrevYear are not used in this.The prevYTD gives me "2019-2020" kind of format .Also attaching the sample data.Please help.

      NamePipeline DescriptionNrcc StatusBilling CurrencyFinal Proposed FeeFinal Proposed OpeExpected Recovery %Won Expected Recovery %Contact NameContact LocationClient Group NameClient NameExpertiseRevenueLocationLead GeneratorLead Converter1Lead Converter2CSLEBUL/SMEGLRMLExpected FeeWin ProbabilityWon ReasonWon Reason DescriptionJob IdCreated User NameCreated User LocationCreation DateStatusPending WithRelationship OfficeClient CityClient Contact CityClient Contact StateClient Creation DateWon Actual Pipeline Close DatePipeline CodeJob FeePRIMARY INDUSTRYPRIMARY SUB INDUSTRYSecondary IndustrySecondary SubindustryTertiary IndustryTertiary SubindustryPipeline Lost DateLost ReasonContact Relationship OfficeRSMLClient StartupClient TypeRecurring/Non-RecurringSectorHow Was the lead generatedIRC StatusNatureOfBussinessTerritoryEmail IDJob CreatedFiscal YearCreation Date MonthStatus (groups)MTBU/BUCreation_FY MonthRec/Non-RecJOB CodeFY_PeriodWon Fiscal MonthWon Fiscal Month No.Lost Fiscal MonthLost Fiscal Month No.Won FYIs CGPLost FYSME Group.1SME Group.2Expected Recovery_%Won FY PeriodLost FY PeriodProject CodeLost This YearWon This YearWonFiscalQrtLostFiscalQrtMaxCreationFiscalYearLiveFiscalQrtTYPipelineLostDatePeriodLiveDatePeriodCreated This YearPrevious Year
      GRO-Tech-West-XYZ LIMITED.-1920-2Internal Audit    70 Mr. JHKMUMBAIABCAbc TelcoRisk Mumbai Parel      â‚¹5,200,000Medium    Mumbai Parel21 February 2020Approved MumbaiHyderabadMUMBAIMaharashtra2/6/2019 12:38:11 PM 41529         Mumbai Parel NoNew ClientRecurringFinancial Servicespast relationshipNAOrganicWest No2019-2020FebruaryLiveTECH-West11  Period 2     Yes GROTech-West70.00%   00FQ4FQ40FQ4NoOlder than 6 MonthsLast 6 Months01
      GRO-Tech-West-ABC Limited-1920-2Internal Audit    70 Mr. JHJMUMBAIABCABC FinanceRisk Mumbai Parel      â‚¹1,800,000Medium    Mumbai Parel24 February 2020Approved MumbaiMumbaiMUMBAIMaharashtra2/6/2019 12:38:11 PM 41550         Mumbai Parel NoNew ClientRecurringFinancial Servicespast relationshipNAOrganicWest No2019-2020FebruaryLiveTECH-West11  Period 2     Yes GROTech-West70.00%   00FQ4FQ40FQ4NoOlder than 6 MonthsLast 6 Months01
      • v-yuta-msft's avatar
        v-yuta-msft
        Community Support

        Anonymous ,

         

        Is there any data in column [Won FY]?

         

         

        Community Support Team _ Jimmy Tao

        If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.