Forum Discussion
Get data for today
Hi,
I'm trying to get the data for 'close' for today's date. I also want to work out how to get the data for 'close' of yesterday's date as well. Can someone help?
findingsolution try following two measures:
Today's Close = CALCULATE ( MAX ( Table[Close] ), Table[Date] = TODAY() ) Yesterday Close = CALCULATE ( MAX ( Table[Close] ), Table[Date] = TODAY() - 1 )✨ Follow us on LinkedIn
Check my latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡
1 Reply
- parry2kSuper User
findingsolution try following two measures:
Today's Close = CALCULATE ( MAX ( Table[Close] ), Table[Date] = TODAY() ) Yesterday Close = CALCULATE ( MAX ( Table[Close] ), Table[Date] = TODAY() - 1 )✨ Follow us on LinkedIn
Check my latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡