Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago
Solved

I having problems with this coding. I've tried troubleshooting but I'm still having problems.

  • HI Anonymous 

    Can you insert a close bracket for maxPrice  & minPrice 

    VAR maxPrice = CALCULATE(SELECTEDVALUE('Stock Prices'[Close]), 'Stock Prices'[Date] = maxDate)
    VAR minPrice = CALCULATE(SELECTEDVALUE('Stock Prices'[Close]), 'Stock Prices'[Date] = minDate)

    Let me know if this helps and if you face any more error.

    If this post helps, then please consider Accept it as the solution to help the others find it more quickly. Appreciate you kudos!!

    Follow me on LinkedIn!!!

2 Replies

  • NaveenGandhi's avatar
    NaveenGandhi
    Icon for Memorable Member rankMemorable Member

    HI Anonymous 

    Can you insert a close bracket for maxPrice  & minPrice 

    VAR maxPrice = CALCULATE(SELECTEDVALUE('Stock Prices'[Close]), 'Stock Prices'[Date] = maxDate)
    VAR minPrice = CALCULATE(SELECTEDVALUE('Stock Prices'[Close]), 'Stock Prices'[Date] = minDate)

    Let me know if this helps and if you face any more error.

    If this post helps, then please consider Accept it as the solution to help the others find it more quickly. Appreciate you kudos!!

    Follow me on LinkedIn!!!