PowerBI - x-axis month label sorting - powerbi

I'm creating a line chart in PowerBi for NPS where the line legend is the year and the x-axi label is the first initial of the month. I'm having a dilemma in sorting the month initial. Can someone assist on this? thanks in advance.

There are two ways to sort.
The first one is on graph level, meaning that you will only sort one specific graph:
Steps:
Click on the graph you want to sort
Click on the three dots
Click 'sort'(In my example named 'Sorteren op')
Choose what you want to sort on.
However, this will most likely not provide you with the right solution. Since it is already sorted on date letter, but in alphabetical order.
Therefore the second solution, sort on colum.
First, we go to the data tab (Or columns tab).
In my example, I have opened a date table to match your question.
Here I select the 'MonthShort' (MaandKort) because I want it sorted based on a number instead of on letters.
Sort on column:
Sort on column select:
If you click the column, it automatically opens the 'kolomhulpmiddelen' tab. Here you can select the 'sort on column' pane and click on the column you want to sort on.
In my case, I chose the monthnumber. So from now on, if I use the MonthShort in a graph, it will sort it based on the monthnumber, meaning that I will see Jan - Feb - Mar etc.
Note: This is from the Dutch version of Power BI.

Related

Showing null values for some of the Power BI rows

I have joined an excel sheet with the world population web link from Wikipedia in my Power BI tool. When I merge these two tables, it shows me the population only from the United States, other countries have null values.
Would really appreciate the help. Screenshots provided below
It looks like your merge isn't matching the rows as you expect.
I would try to investigate if there are "invisible" differences in the columnar values:
Canada (with an appended space) will not match to Canada for example. To check for this, go into the table you are merging and select to Trim the key column.
In the table you are merging into, do the same Trim operation for the key column.
Edit: Another option is to apply fuzzy matching to the merging process and to limit the amount of fuzzyness by setting maximum number of matches per row and adjusting the similarity threshold up from 0.80 to something closer to the maximum 1.00 (= exact matching).
I think issue is left join. Try with join tables with country column to present all columns.
Click dropdown and select full outer feature and expand.

Power bi sorting not works for texts which includes numbers

I want to sort the y-axis as 0-2 days, 3-6 days, 7-13 days, 14-20 days, 21+ days. But it appears as in the image.
I tried StoreText = FORMAT(Test[days], "####") it is also not working. Can someone help me?
You can add an extra column to your data set that has the sort order. Then you go to DATA tab, select your column with the days in text format, then go to "column tools". Here you have an option "sort by column". Set it to the sort order column.

PowerBI - Cumulative diagram with changing values

I am attempting to create a cumulative graph much like this one:
I have the following table in PowerBI
BugHistory
BugID
Date (date)
DateTo (date)
EntityStateName (text)
Effort (number)
I would like to do a measure that would tell me the amount of summed Effort on any given date for each EntityState.
I have tried quite a few things, even adding a Date Table using the Calendar, but getting the values to be shown correctly on a StackedGraph seems to be beyond me.
Hope someone can help.
Follow the following steps:
Right click on the column "Effort" and click the option called "New quick measure" in the right click menu.
In the window that appears, choose "Running Total" under the Calculation drop-down
This will show 3 new fields
In the Base Value field, drag and drop the "Effort" column
In the Field column drag and drop the "Date" column.
In the direction column choose Ascending
This will create a new measure in your Table. You can use that measure in you chart.
You can refer to the following video for reference: https://youtu.be/KlXclbN4oWE?t=497

How can I sort my chiclet slicer on the basis of customer segments?

I have a chiclet slicer for my customer segments- Platinum, Gold, Silver & Iron but the order is basis on the count of customers in each of them. I want to sort it in the following order-
Platinum
Silver
Gold
Iron
Add another numeric column in your segments table to define the desired sort order, e.g.:
In the report view, in Fields pane, select the segment name column and in Modeling tab click Sort by Column and select Sort Order column:
This will change the sort order of the segments from alphabetical (based on their name) to the one defined by the values in Sort Order column:
Try to add a conditional column named SortOrder in Query Editor mode.
In data view mode, change the default sort by column to [Sort Order].
You can know more about the Sort by column in Power BI Desktop
Neither Solution above works for me. I create the sort table (no problem), link it to the table with data (no problem), attempt to select the field and then go to modeling where I DO NOT see this ability to select the sort by

Merge or combine two columns in power bi

I am not sure if my title is correct one, but here is the deal:
I want to make a matrix visualization in Power Bi Desktop. I have fields: ARTICLE_ID and ARTICLE_NAME.
I would like to have both those fields in COLUMNS position in matrix data view. And I need them to be in one row, no need to drill down... because it is one and the same thing...
I need to have ARTICLE_ID and ARTICLE_NAME as two separate columns on the same level. without drilling. And also, I dont want to use concatenation or merging into some third column. is that possible? thanks
1) I started with this sample data.
2) I created a matrix and configured it as shown in the image below.
3) I clicked the forked arrows to show all levels.
4) In the Rows section of the formatting pane, I turned off "Stepped layout".
5) In the Subtotals section, I turned off "Row subtotals".
I don't know if this is exactly what you are looking for, but I think it is the closest I can come up with since you don't want to concatenate the columns together.
If they are from the same table then just drag and drop them into the columns.
The way a matrix works from my understanding in PowerBI is;
Rows are just the headings/categories of the values.
You might need to also go into the format tab, values, and make sure show on rows is on.
For example, let's say our value headings are rainy days and sunny days.
Your columns are months.
The rows will be the 2 categories.
The values will be the values.
As concatenation and "&" does not work in Power BI directquery you can use the below one:
[New_column_name] = if((table_name[column_name]="A" && table_name[column_name]="B"),"AB","NA")
Thanks,
Sachin Kashyap