Hello Power BI :)
My line chart is not showing hierarchy date as I want. the "Expand down level in the hierarchy" is not working as expected.
I want to see the X Axis by: Month, Quarter, Year as below:
But all I can get is the below:
I want to see lines instead of these dots as well.
How to fix that, what's wrong that im doing ?
Thank you
If I guess right- You are getting single Dot as you have data for the year 2020 only. Now you have option of drill down on right top of your line chart as shown in the below image. You can go to Year, Quarter, Month, Day using those options.
Related
My problem is: I'm strugling with Power bi trying to correct a default behaviour of the line chart. In this case when I try to filter my data for periods of 2 to 5 days the hours of the day appear in the X axis. Like I show in the image below. In my date hierarchy I have specified my date column with the format (dd/mm/yyyy) and the column is of the type "date", but he hours of the day still appear.
How can I get rid of the hours of the day when I select only 2 to 5 days in the slicer of time??
What I've tried: I've tried to change the date column in my line chart visual so that only the month and the day appear but when a monthly period of days is selected the visual isn't able to show all the data at once and the user needs to scroll in the element, so it is not a solution. I've also tried to change the format of my date column but without sucess.
The desired result must show only the days without the hours of the day like the image bellow:
Links I've followed but sadly didn't help:
Power Bi Axis X and Y
Core plot x-axis labels are not shown
In Power BI X-axis label, how to show only week starting day instead of all date series?
Can Power BI add range selection to a Line Chart?
I have a combo chart that I want to track Actual spending versus Budget over a 3 year period. The Budget line items are bar charts, the Actuals are displayed by a symbol. There is only one data point for Actuals, 2020, Budget data is for 2020-2022. My problem is that Actuals are aligning with 2021, not 2020. Viewing the data as a straight table, I know my data calculations are correct. I am not suppressing zeros and the order of expressions (promote, demote) has no effect. Any ideas why this is happening and how to fix it?
Image explaining the issue
I have run into this more times then I like, and I think it will continuously haunt me. I am creating reports/dashboards that report monthly or yearly or weekly data. The dates come in with just the last day of the period. For example, now I am working 2019 monthly report that is a bar chart with a trend line. Took me about 15 minutes to make in excel. However, we are trying to move everything into Tableau for dashboards. Trend line is always grayed out when using discrete dates and sometimes when using continuous dates. The dates are in the format DD/MM/YYYY so I can convert them as continuous but that skews the spacing on the X-Axis. I have messed around to get it to work but it takes time. I am shocked that this very basic thing does not work when Excel has been able to do it for a very long time. Does anyone know of a good work around? I have tried calculated the trend line myself, but do not see how I can add in the y=mx+B line that is generated. I am debating creating a data set just for this, but that seems long and hard way for something that I would have expected out of the box. Below is some basic data, in Excel it takes about 1 minutes to create a line chart, click (+) add trend line and your done.
I was not able to deal with the skew of the X-Axis very well but playing with the date it started and setting the major tick marks to monthly got me close. Looking at the picture below you will see the tick marks are not in the center of the bars but close. As for the trend line, I added a Dual axis on the same data that was the sum of all shown fields with no division by the parts (this is a stack mark bar chart). Since this is a basic line chart with continuous dates, a trend line is a simple click. I then removed the Tick Markets and set the opacity to 0% making the line invisible. I did not change the trend line so now that is all you can see. Seems like a long and hard way to do it, but it works. (UPDATE) Better fix, NEVER USE EOM always use First of Month.
I'm used to using Tableau (similar to powerBI), and I'm now testing powerBI as well. I've been trying to receate a plot from Tableau, but I'm unable to do it (see the images).
Now I realize that this probably has a very simple solution, and I understand the general problem with how the data is aggregated together, but I'm just not able to find the solution on my own. What sort of buttons should I push in PowerBI to make this work?
Thanks for any help!
Tableau plot
PowerBI plot
In the Tableau plot, you're putting the Date at Day level on the x-axis. In the PowerBI plot, you've the Date at Year level at the the x-axis. That's why all points are displayed exactly on a year.
You should put the Day at Day level on the x-axis in the PowerBI plot, just like the Tableau plot. You can do this by dragging the date column in the X Axis field, and remove the Year, Quarter and Month level. The only remaining level will be Day.
Edit:
Or don't display the hierarchy, and display the date field:
Change the Date field from "Date Hierarchy" to plain "Date"
Power BI treats dates as hierarchies by default - this is useful for drilling (e.g. see the "big picture" of year-over-year performance, and than drill down to month or day resolution) in interactive reports, but less so when you just need a quick summary.
You can change this using the dropdown button next to the "date" field in the visual's field-well. Just choose "Date" instead of "Date Hierarchy":
For comparison, this is the same visual with date as date hierarchy:
There are some additional details in this 5 Minutes BI blog post.
On a published tableau report you can drill down the Date axis to get a more granular view, ie Quarter to months to days.
My question is - there is no drill up to go back ie days to months to quarters. Any one knows how to go up? You only get a plus button and not a minus button.
Thanks
Gemmo
Well, there is actually a minus button, just checked.
If you have a Date axis by years, and click the + button, it will create a sub axis of quarters, but the year axis will still be there. You can go deeper by clicking the + button on the quarters axis, or go back to just year level by clicking the - button on the year axis (always look for the - button on the top aggregated axis)
For discrete dates Tableau shows both the minus and plus buttons for changing the granularity of aggregation.
For continuous dates Tableau only shows the plus button for drilling down. It is super frustrating. The only way to change the date aggregation if you use the continuous measure is to click on the right side of the pill and select the desired aggregation level form the options listed.
Here is a link to a Tableau forum where people are asking for the drill up feature to be added: https://community.tableau.com/ideas/1304
This like discusses continuous and discrete date types in some detail
http://vizpainter.com/dates-in-tableau-make-me-want-to-tear-my-hair-out/
You will find a minus symbol in the published view after you hover over the left side of the aggregated view.
Say you want to view the drill up for quarter, hover over near the quarter on the left as shown in the picture below and you will find the icon.minus view (check the arrow area)
Yes is it possible to view (-) after click on (+) sign because the reason is that when you expand the year and view quarter of month year will be there.
enter image description here
back to minus sign (-) click and collapse the year.