Forum Discussion

pbeeyeqs's avatar
pbeeyeqs
Helper I
7 years ago

Determine Trend Positive, Negative, Neutral over Time

Is there such a way to create a DAX measure in Power Bi showing whether TREND LINE (Slope?) is Positive, Negative or Neutral over time based on a value such as sales?? 

For example:

 

- I have filtered the DATE to be the previous 18 months 

- For each company, during that time frame, I would show the Positive, Negative or Neutral TREND. 

 

COMPANY      MEASURE VALUE      TREND

A                                x                         Positive

B                                y                         Negative

C                                z                         Negative

...

 

5 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    pbeeyeqs  What is the trend based on? Is there a condition?

    • pbeeyeqs's avatar
      pbeeyeqs
      Helper I

      Sorry - TREND is a TREND LINE. Is the line (Slope) positive, negative or neutral. 

      I'll edit my initial question.

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

        Hi pbeeyeqs ,

        Do you have a standard value to distinguish trend? For example, 80 is positive, 50 is negative and etc..

        Can youplease post some sample data and expected result? Then we can help you as soon as possible.

         

        Best Regards,

        Xue Ding

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