Date Open High Low Close Volume
1993-01-29 27.14 27.14 27.00 27.12 1625280
1993-02-01 27.14 27.31 27.14 27.31 778338
1993-02-02 27.29 27.39 27.23 27.37 325941
Hi,
I have this timeseries from the S&P500 index (daily data) starting on 1993 all the way to 2018.
I was trying to build seasonal charts, like the January movement from day 1 to 31 since 1993 in one chart or the evolution of prices from January to December to see the sell in May effect.
Forgot to say that I'm only using the close column.
Thanks...
Steve
Related
I am a beginner in PowerBI looking to better understand the application and look for ways to upgrade the Excel dashboards that I made for a company of a friend. Therefore, I am trying to recreate the Excel dashboard in PowerBI. I am doing quite well so far with the other visualisation and the data model, but I am struggling to recreate a visualisation for which I had to create a Pivot table in Excel.
Although I can recreate the pivot table using the table visualisation, I would like to create an actual table using DAX such that I can use it for other visualisations as well.
I have a fact table called fJobs that has a structure:
Date
OrderNumber
License plate
StartTime
EndTime
Duration
01-01-2021
1
plate 1
08.00
12.00
03.00
01-01-2021
2
plate 1
11.00
12.00
01.00
01-01-2021
3
plate 2
13.00
15.00
02.00
02-01-2021
4
plate 2
09.00
15.00
06.00
03-01-2021
5
plate 1
09.00
16.00
07.00
03-01-2021
6
plate 2
08.00
10.00
02.00
03-01-2021
7
plate 2
10.00
15.30
05.30
03-01-2021
8
plate 2
15.30
16.00
00.30
As you can observe, for a particular day a license plate can be scheduled for multiple orders. Now I would like to create a table that calculates the utilisation rate is (having summed the duration of multiple orders for a truck on a specific day) for each day for each license plate. It would look like:
Utilisation rate per day per truck
license plate
01-01-2021
02-01-2021
03-01-2021
plate 1
0.50
0.0
0.875
plate 2
0.25
0.75
1.0
Where the license plate column is a column of a dimension table (dTrucks), the dates are a column of another dimension table (dCalender) but these are now transposed and filtered on weekdays. The values are a sum of the duration of jobs per day for a particular license plate (truck), divided by 8 (working day).
I can recreate the latter table in PowerBI using the table visualisation with the following settings:
values: dTrucks[License plate]
Columns: dCalender[Date]
Values: fJobs[Duration] divided by 8 (quick measure)
How would I go about creating such a table using DAX (new table) in PowerBI?Thanks in advance!
John
I'm working on a spreadsheet to calculate the size of a holding tank for condensate water. The goal is to size the tank so that on the worst day (sometime in February) we have 50 or 100 gallons in the tank.
I've got a data set of average monthly condensate water from 18 ac units.
Here's the monthly average, Jan to Dec (in gallons):
310
134
996
2298
3801
3289
3110
3350
3046
1454
1430
307
To make the simulation more accurate and eliminate the sudden changes that occur after the first of each month (Where Feb is 134 gallons and Mar is 966) I'd like to be able to calculate 365 data points that are along the mathematical curve created by the 12 average points so that the accumulation is more realistic. For simulation purposes I can assume that the average monthly is at the mid month of each month.
How would one go about such a calculation?
I've got some publicly available data that I'd like to plot as a time series.
However, when I try to plot it, it plots two lines. It appears that Excel can't work out that the Year column is time. How do I convert it?
Year Area planted Area harvested Yield Production
1909 29,196 27,018 15.5 417,796
1910 32,878 28,152 15.3 429,875
1911 33,653 29,780 14.4 428,740
1912 35,709 28,406 14.2 402,703
This is the output
Convert your year to a date, and then convert the date to a year.
The formula is: YEAR(DATE(A2,1,1))
I have 7 different measurement points on which is temperature measured for every hour (timestamp). Like these pic down.
I want graph similar like these.
Data table:
timestamp m1_temp m1_dist m2_dist m2_temp
Mar 9, 2017 12:00:00 AM 51.72 20.00 10.00 41.72
Mar 9, 2017 1:00:00 AM 48.73 20.00 10.00 38.73
Mar 9, 2017 2:00:00 AM 43.51 20.00 10.00 33.51
I get:
So problem is now:
I need to pick timestamp range (button or just calendar with time) and see animation (not real animation, it would look like that because data ranges would change for example every 2 seconds) on chart trough that time. It would be great to see chart title as timestamp.
Maybe connect points with line, it would be more visible to the viewer.
Thanks in advance
Currently, I don't think it's possible to have timelapse animation in Power BI visuals.
There is an idea related to this that you can vote on though:
Animation for ALL!
Without animation, there are a couple possible ways to attempt a similar thing. Either use a slicer for time or else show all times at once.
To do this, your data will need to be formatted a bit differently like this:
I have data that looks as shown below
The blue line is for 2016 and the orange line is for 2017.
The X-Axis represents Days which are equivalent days between years. So for example day 20 might be 5/1/17 (for the 2017 year) and 5/2/16 (for the 2016 year).
The Y-Axis is the number of hours enrolled and each day it increases until around day 130 when the registration system closes.
I have historical data for 5 years but I want to make a forecast where the 2017 curve takes the same shape as the previous year's curve.
I have tried the Forecasting tool in Excel 2016 in two ways:
1. Forecast just on the 2017 data - not correct because it has no way to take the shape of historical data into account.
2. I lined up 2016 and 2017 in the same column then did the forecast but it was still completely wrong.
I tried also charting the curves and using linear, logistic, polynomial but none of thse approximate my actual curve.