I have historical daily gold prices in excel and I load them to the Power BI. But in default, Power BI shows me only year based value, but for year 2016 i have values only for January and February and therefore diagram is distorted as you can see below.
Base data looks like (can be downloaded here in .csv)
Visual setting is
And i want to see diagram curve to be done by months to prevent distortion.
Curve should be similar to this diagram
There are years only as a description
Thank you for help
PBI is has generated a Date Hierarchy with only a Year level. I can tell that from the word "Year" appearing under on the Visualizations pane, under "Date" (in the Axis Section).
I would click the small down-arrow to the right of "Date", in the Axis section. I would change that setting from "Date Hierarchy" to "Date". This will plot every daily value on the chart.
Unfortunately you cant control the date format used in the X-Axis labels - hopefully they will add that in some future release. Their automatic labeling is usually OK.
Related
I have a dataset with dates from 2011-01-01 to 2018-08-01, showing data for every 1st day of the month. I would like to create a control chart (c-chart) accounting for the number of days in each month.
I will freeze the control limits at the last month of the baseline period (February 2015) and extend these limits across the intervention period (i.e. the rest of the period covered by the data). Then i will draw a vertical line to separate the baseline and intervention periods, using the format_spc_chart function to format the chart so that the rule breaks are highlighted.
I tried to look at the help for the lubridate function days_in_month but I am stuck to create this chart. Here is my code:
enter image description here
Although it gives me the qic chart (but not in days in month which I would need), I have nothing for the ggplot chart.
thank you for your support.
regards
Ellie
I have created the attached dashboard in powerBI. It is a monthly report. That shows the count of item each month. The dates are in this format 1/1/18, 1/2/18, 1/3/18 that the first day of every month
When I created the report powerBI are skiping one month at interval. See Pix attached.
how can i show all months?
Desired
I believe you'll need to change the "X-Axis" type to "Categorical". It looks like it's defaulting to Scalar, which makes a continuous axis and picks tick marks based on available space.
You could try decreasing the font size of the month labels since Power BI might be avoiding overlap. You could also try shortening the length of the label from MMM-YYYY to MMM-YY.
I am currently plotting my data which displays the activity levels for an animal before and after she gave birth.
On the x axis is date (so, day month here) and on the right is activity. As you can see, there is a small gap which was due to collar malfunction. For visual purposes, is it possible to set the data from July 2015 (and upwards) directly next to April 2015 so that the points are sitting right next to one another rather than being separate? I would provide sample data, however, I am still trying to figure out how to do that, however, my R script is the following:
c<-ggplot(ii,aes(y=ii$newavx2, x=ii$datenew, color=infant))+ ylim(1.5,5.9)+ stat_smooth(method=lm)+ geom_point()
Thank you so much for your help.
The first thought of mine is you should put the color in aes() to geom_point if you want the fitted equation to be linear instead of truncated.
If it's the problem of the missing date, you should consider using factor(x) like
ggplot(ii,aes(y=ii$newavx2, x=factor(ii$datenew)) + geom_point
so that the ggplot2 could merge the near truncated date together without leaving any time gap.
However, I don't know if I understand exactly the question. It'd better if you provide some reproducible data set.
I have two values I wish to plot against each other in tableau. They are two totals aggregated around the same date. I can get them to the point where they are plotted on a dual access against the date like so:
but any attempt to plot them against each other for correlation has come to nothing. I've tried simple conversion to scatterplot, using calculated fields, using a cross tab with subtitles and attempting to only plot the subtotals against each other all of which have failed. I could do it in Excel but have to do it in tableau.
I have consulted the official Tableau 9.0 guide, google and existing questions on Stack Overflow all to no avail. If I was doing this in BOXI, I could just select the columns and chart them. How do I do the equivalent visualisation in Tableau?
You aren't clear about what type of chart you want to make.
Do you want a scatter plot? If so, put one measure on the row shelf, the other measure on the column shelf, and one or more dimensions (such as your date) on the detail shelf to define how finely to aggregate the data. Check the aggregation functions you use (SUM, AVG) and the aggregation level for your date fields (YEAR, MONTH ...) as desired. You probably want to use the second block of date aggregations on the menu unless you want to group all January data together regardless of year.
If you want a connected scatter plot, set the mark type from automatic to line and move the date field from the detail to the path shelf. You might also then want to put the date on size, color or legend to visually show the direction of time on the line. You might need to change that field to attribute in some cases to avoid creating multiple lines.
Tableau is fantastic once you learn how it works, and get a strong understanding of how choices about treating fields as dimensions or measures, or discrete or continuous impacts the behavior. If you skim over those details, you can still make beautiful charts by following recipes, mimicking examples (and asking StackOverflow), but Tableau's behavior will seem mysterious and arbitrary.
If you take some time to learn the fundamentals about how Tableau works, it will repay your time investment. I recommend Joshua Milligan's book Learning Tableau for a good way to start, along with the training videos on the Tableau website.
The histogram i created with my data is shown as a thick block. There are valid hits numbers and dates on the y and x axis respectively, which indicates the data is proper. What can be done to scale it down to an understandable one?
The problem with your histogram is that the data you have indexed would be having a good frequency against the date and/or the data might be months old. So the default interval option for Kibana is set to one year.
You can change it by changing the default time period from "year" to any other smaller values under the section "view" (marked as 1 in the below figure) in the "Interval" dropdown (marked as 2).
More on histogram analytics can be from this blog