Making a scatterplot in PowerBI - tableau-api

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.

Related

Power Bi Plot dataset with x-axis dates

I am working with a dataset with which I am creating a dashboard. My dataset is very simple, a first column of [yyyy-mm-dd-hh-mm], and a second column with many values.
I read in many threads and forum about the difficulty to plot dates on x-axis (including hours and minuts).
As reference I am using this dashboard built in PowerBi https://www.terna.it/it/sistema-elettrico/transparency-report/total-load .(Public data of Italian electric energy generation)
This is exactly the outcome I would like to obtain, but by now I cannot display the hours and minuts. I used their data to reproduce the dashboard.
I tried to switch from a "dates" x-axis to a "text" x-axis, but the result is not the same, and furthermore the plot does not occupy the whole page but I have to move to the right.
enter image description here
I really cannot understand how the linked dashboard was built.
Any idea?
I guess your problem is that you have been using Date Hierarchy on the x-Axis you instead of Date only.

Hierarchy Date in Power BI

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.

Highlighting box for provisional data on Viz

I would like to create a box(shaded with a different color to the background) to show the fact that the last 3 days are provisional data. I want to do this on a line chart that has date on the x-axis and a value on the y-axis. If there is a filter on the dates displayed the box should only show up on the last three days relative to the current date(which is the last date in the date field).
I wrote about this use case in a recent blog post showing how to shade a Tableau chart. The same solution should apply here. Create a calculated field based on the dates you want to mark as provisional. Something like:
[Date]>=DATEADD('day',-3,{MAX([Date])})
Use that and format the shading. The article has the full explanation with images - it's a bit long to post in this response.

How to hide legend element based on specific year in Tableau

I am pretty new to Tableau and I have a question about hiding a specific element from the legend box in Tableau software. I have legend based on year (2018,2019) and measure values ( which is calculation formula for retrieving the result for the current and previous year) for 2019 year. I would like in my legend box to hide targets for 2018(previous year). If I exclude Target(Budget) 2018 from the legend box, it is excluding the element Cost, 2018. Could someone help me how to solve this ?
enter image description here

Tableau - Multiple Line Graphs Day by Day

I would like to create a dashboard showing Level Funnel for the users with respect to their register date on the same chart.
My data is like the following:
And from that data, I would like to create the graph like below:
But in tableau I couldn't manage to combine those graphs below, which are separated day by day:
I tried to follow this steps, http://downloads.tableausoftware.com/quickstart/feature-guides/combo_charts.pdf however I couldn't find 'Customize Marks' button in the menu.
That would be great if you can help me on how to combine these graphs into one graph.
Thanks.
Drag the DAY(Date) field from the row shelf to the color shelf
One way to think about it: When you have the DAY(DATE) field on the row shelf, and you've configured it to present as a discrete field, you are telling Tableau to "make a row for each day". When you move that field to the color shelf, you are instead telling Tableau to make a color for each day. The same mental substitution works for discrete fields on most of the other shelves, like columns, shapes, pages -- i.e. make a page for each day.