sales over annual quota(Sales-Quota) Total value if Negative must return zero and if positive return same positive value

  • sales over annual quota(Sales-Quota) Total value if Negative must return zero and if positive return same positive value

    Posted by DSC Communities on May 27, 2022 at 2:52 am
    • sridhama Kundur

      Member

      May 27, 2022 at 2:52 AM

      sales over annual quota(Sales-Quota) Total value if Negative must return zero and if positive return same positive value

      Here in the sales over annual quota , Negative amount must return as zero for Trauma and same positive amount is already correct showing up under Extremities.
      I Tried IF Then Else logic (0+$4,22,47,253 =Ā  0) didn’t worked , will return sum of these two numbers as zero.
      As said ($2,81,07,54,662) as 0+$4,22,47,253 =Ā  $4,22,47,253 (Desired Output)
      Need help on other way of work around to build using Dax measure.

      ——————————
      sridhama Kundur
      ——————————

    • Adam Artur Boltryk

      Member

      May 28, 2022 at 5:12 AM

      Hi Sridhama,

      strange numbers you haveĀ  šŸ™‚

      What about SWITCH(TRUE(),[Variance to Quota]<0,0,[Variance to Quota])

      Regards

      ——————————
      Adam Artur Boltryk
      Business Analyst
      ——————————
      ——————————————-

    • sridhama Kundur

      Member

      May 29, 2022 at 5:15 AM

      Hi Adam,

      Thank You for your suggestion

      when I use switch dax function, am seeing total as zero..
      Total must be $4,22,47.253 right


      Need an dax measure to resolve this.

      Thank You

      ——————————
      sridhama Kundur
      ——————————
      ——————————————-

    • Dili Timor

      Member

      May 31, 2022 at 6:36 AM

      HI Sridhama,
      I think you should create dax measure for total sales-quota with calculate or sumx function then create measure (sales-quota-adjusted) again it to adjust 0 value for negative value.
      And than create matrix with trauma and extrimities as category and geo as sub-categories and (sales-quota-adjusted) for value. Than you can get total, grand total by fly

      ——————————
      Dili Timor
      12510
      ——————————
      ——————————————-

    • Nancy Peterson

      Member

      June 2, 2022 at 6:36 PM

      Hi . Have you tried something like this?

      Variance to Quota = IF( Ā Ā  [Sales]-[Quota] <= 0, Ā  0, Ā Ā  [Sales]-[Quota] )

      ?

      ——————————
      Nancy Peterson
      Senior Business Analyst
      Pitsco Education
      Pittsburg KS
      ——————————
      ——————————————-

    DSC Communities replied 3 years, 10 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

The discussion ‘sales over annual quota(Sales-Quota) Total value if Negative must return zero and if positive return same positive value’ is closed to new replies.

Start of Discussion
0 of 0 replies June 2018
Now

Welcome to our new site!

Here you will find a wealth of information created for peopleĀ  that are on a mission to redefine business models with cloud techinologies, AI, automation, low code / no code applications, data, security & more to compete in the Acceleration Economy!