data points and straight lines in Line Chart - powerbi

I am infant to power bi , And Below is the data which resembles to my
data set in Power BI
And below is result for the above data table
But my client wan'ts the dot lines in it and he is expecting the
report result to be as below
Can any one please help me how can I make it

First unpivot the Quarter columns:
-Click 'Edit Queries' at the top
-Select "Transform' tab
-Select the 4 quarter columns (Select 1st column, shift click last column to selct them
-Select 'Unpivot Columns'
-Back to home tab, close and apply
Now add a line chart visual. Place the new column (Which depicts the quarter) in the 'Axis' field. Place the values for the companies in the Values field.

Related

Table Chart: Unable to select the complete row on On-Click on 1 column cell in Apache Superset

When I enable Cross Filter option and click on 1 Column cell it is selecting that particular cell but not the whole row. Please guide me if there is any option to select the complete row in a table chart. This is a blocker for our request given by Client
How to reproduce the bug
Go to 'Table Chart page'
Enable 'Emit Dashboard Cross Filters'
Go to the table and select any column cell
You could see only that cell is selected not the complete row in which the selected cell is present
Expected results:
Entire Row has to be selected

Clean Data in Power BI

i need help on cleaning this data. Currently I've no idea to clean this kind of data. I want to clean based on month and total per supplier. Thanks
Select the first 2 columns [No] and [Supplier]
On the tab Transform drop down Unpivot Columns and click on Unpipot Other Columns
This converts your wide pivot table into a long, stacked format that is ideal for further processing.
Another way you can achieve this is
Select all the date columns.
Click on the transform tab, under any column section, click on unpivot only selected columns
Kindly rename the Attribute column to date
If you need to split the date column into month and year
4. on the transform tab, under the text column section, click on Split Column, select "by delimiter" on the dialog box, select split at the left-most delimiter and click ok.
You will have your month and year columns as shown below
if your value column holds figure for amount/money you can transform the data type and replace the null values with zero using the replace values function when you right-click on the values column.
I hope this helps

Tooltip values not updated after selecting value from Slicer

I Have 3 tables,
1st table Measures : Contains all measures calculated using other tables and measures column names are ProgressPercentage, ProgressA and ProgressB.
2nd table Modules : This table contain distinct modules uses one of the slicer.
3rd table Iterations : This tables contains column Iteration in dates format which uses X-Axis in line graph and another column name is Area which uses for other slicer.
Using ProgressA and ProgressB I calculated ProgressPercentage.
In line graph x-axis is Iteration (Dates), Line represented in % uses measure column ProgressPercentage. In tooltip their are two values ProgressA and ProgressB.
Now issue is when I select Area from slicer then line graph is updated but not tooltip values. How I can update tooltip values using different table?

Power BI: Inserting both year and month in line chart legend

I have a line chart in powerBI with the last 6 months as a legend (Sep,2020 - Feb,2021). The issue is that I want to have the months sorted by year (Sep-2020, Oct-2020....Jan-2021, Feb2021) but I can't insert both year and month in the legend and it accepts only one of them:
I have tried to make a new column in the edit query section that extracts the value (year-month) from the "Create_date" date column. But when I insert this column in the legend it takes all the values from all of my data, and not the last 6 months. The date filter I have is for the original "create_date" column.
One way is to add a new column via the Power Query Editor that computes the legend for you. There maybe another funky way but this is how I would approach it.
The column has the following function
= Table.AddColumn(#"Expanded Content", "Date For Legend",
each Number.ToText(Date.Year([Timestamp])) &
"-" &
Text.PadStart(Number.ToText(Date.Month([Timestamp])), 2, "0") &
" " &
Date.MonthName([Timestamp])
)
This basically take my column called [Tmestamp] and formats it to a string field for my legend use. Note as 2020-09 comes before 2021-01 everything is in order.
and then change the legend value on the line chart to Date For Legend

Order date in a table

Hi I'm trying to order a table in BI by monthNumber, but now I have same months in differents year, and PowerBI doesn't care about that. I have:
Jan-20
Feb-19
Feb-20
Mar-19
Mar-20
Apr-19
May-19
Jun-19
Jul-19
Aug-19
Sep-19
Oct-19
Nov-19
Dec-19
And I want:
Feb-19
Mar-19
Apr-19
May-19
Jun-19
Jul-19
Aug-19
Sep-19
Oct-19
Nov-19
Dec-19
Jan-20
Feb-20
Mar-20
NOTE: Each month I will add a new month (The actual current month e.g. Now Aug-20) and this should still work properly
Let your table name is "order_by_month" and the column name is "month_year". Now just follow this following steps to order data as per your requirement.
Step-1: In Power Query, create a custom column as below image-
We are generating this column with the First date of each month so that we can order our original data later based on the Date value. The generated value in the new column will look like below-
Step-2: Change the above red marked column's data type as Date.
Step-3: Get back to report by clicking the "Close & Apply" Button.
Step-4: In the report, go to Table view and select your original column "month_year" and order this column by newly created column "date_formatted_value" as shown in the beloe image.
Now the final output will be sorted as below as you wants-