Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
I managed to import stock data from Yahoo Finance. I used the method discribed here. The result is a table like this:
So I have daily records for mulipte "QuoteSymbols".
I would like to calculate the difference between the "close" of a specific day with the "close" from the previous day.
I tried this measure:
Close previous day = CALCULATE(SUM(StockList[Adj Close]),PREVIOUSDAY(StockList[Date]))
Solved! Go to Solution.
@Carla17 , Try a measure like Last Day Non Continuous in example . with a date table, refer my blog that have more details
Last Day Non Continuous = CALCULATE([sales],filter(ALLSELECTED('Date'),'Date'[Date] =MAXX(FILTER(ALLSELECTED('Date'),'Date'[Date]<max('Date'[Date])),'Date'[Date])))
Day behind Sales = CALCULATE(SUM(Sales[Sales Amount]),dateadd('Date'[Date],-1,Day))
Day behind Sales = CALCULATE(SUM(Sales[Sales Amount]),previousday('Date'[Date]))
Day Intelligence - Last day, last non continous day
https://medium.com/@amitchandak.1978/power-bi-day-intelligence-questions-time-intelligence-5-5-5c324...
@Carla17 , Try a measure like Last Day Non Continuous in example . with a date table, refer my blog that have more details
Last Day Non Continuous = CALCULATE([sales],filter(ALLSELECTED('Date'),'Date'[Date] =MAXX(FILTER(ALLSELECTED('Date'),'Date'[Date]<max('Date'[Date])),'Date'[Date])))
Day behind Sales = CALCULATE(SUM(Sales[Sales Amount]),dateadd('Date'[Date],-1,Day))
Day behind Sales = CALCULATE(SUM(Sales[Sales Amount]),previousday('Date'[Date]))
Day Intelligence - Last day, last non continous day
https://medium.com/@amitchandak.1978/power-bi-day-intelligence-questions-time-intelligence-5-5-5c324...
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
100 | |
78 | |
64 | |
58 |
User | Count |
---|---|
148 | |
113 | |
97 | |
84 | |
67 |