cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
findingsolution
New Member

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_0-1627944347411.png

 

1 ACCEPTED SOLUTION
parry2k
Super User III
Super User III

@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.






Did I answer your question? Mark my post as a solution.

Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





View solution in original post

1 REPLY 1
parry2k
Super User III
Super User III

@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.






Did I answer your question? Mark my post as a solution.

Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





View solution in original post

Helpful resources

Announcements
PBI_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Get Ready for Power BI Dev Camp

Microsoft named a Leader in The Forrester Wave

Microsoft received the highest score of any vendor in both the strategy and current offering categories.

Get Ready for Power BI Dev Camp

Power BI Dev Camp - September 30th, 2021

Mark your calendars and join us for our next Power BI Dev Camp!

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Top Solution Authors