How to remove the empty rows in the table in PowerBI? - powerbi

Hi all,
I have a table in PowerBI as shown in the screenshot above. I want to remove the rows in the table where column D is empty. So in the example above, the rows that should be removed are row7,8,9,10. In Power Query Editor, I'm only able to remove the rows if the entire row is empty.
May I know how should I remove row 7-10 in PowerBI? In future, if the data for row 7-10 in column D are available, then it will be restored back. Is this possible to achieve? Any help or advice will be greatly appreciated!

You can do as #Jeroen Mostert mentioned in his comment, within Power Query, or if you are just trying to display the table as a table visual in Power BI like this...
...then you could just filter the table visual by the column with blanks within Power BI without doing anything in Power Query.
To filter the table visual:
select the table visual
then, in the Filters pane, find the section about your column named Final, and then select "is not blank" from the drop-down selection below "Show items when the value"
then click Apply filter.
This screen snip shows the table visual selected and the Filters pane visible with "is not blank" selected in its drop-down.

Related

How do I create a slicer that only affects one column in Power BI?

I have a table with multiple columns, I would like to add a "Previous Date Slicer" so that there is a column that will fetch data from previous dates that the user selects, but it applies this slicer to the entire table so I can't actually create a comparative column and the entire table is filled with data from the dates I have selected.
The intent is that the Previous Data Column will display the information from the previous dates I selected in the slicer column, creating a comparison. One column will have the current dates data, and the other column will have the previous dates data from dates the user specified.
you should be able to do this by "Edit Interactions" feature.
When you have the slicer highlighted you will see a "Format" pane in the top many and the first button on this page is the one you want. One you enabled "Edit Interactions" some extra icons will apear on the other objects and all object is by default set to filter. You can change the object you don't want to be filtered by the slicer to "None"

about columns filled with 'table' and 'value' in dimension tables queries within power query

While working on power query in power BI desktop, as I opened each Dimension table queries, I found the right corner columns of each table have one or two columns with 'table' or 'value' as values;
Would anyone help me understand,
what do they indicate?
why are they clickable and when clicked, they are removed automatically.
Thank you for giving your valuable time!
Actually the text "Table" is what it is. In there is a table with columns and rows. By clicking on the "Expand". PowerBI will open the table and "Paste" the columns to your sheet.
It is logical when you think about it because you are looking at a dimension table.
As for the "Value" in your DimProductSubcategory, I am not 100% sure(might be j-son or xml). What you can do is click on it, it will show you what is in there, it does a drilldown. If it asks a question are you sure, press no and copy the query first so you have the original.

How to add calculated column to existing table that would ignore selected value in a slicer Power BI

I need to add calculated column that would ignore values selected in a slicer:
I tried:
all users = ALL(Sheet1[UserName])
But it gives me an error: A table of multiple values was supplied where a single value was expected.
A calculated column cannot be affected by a slicer but that's not what you seem to be referring to.
It appears you are trying to create a visual that lists all the users. For this, you can put Username on a table visual and disable the filtering from the slicer by going to the Format tab and clicking Edit interactions.
If I understand you correctly, You have to use ALL() Function by
creating new table Under the modelling tab

Power BI: Make a Table Visualization display all observations of a dataset

I've noticed that If you have a table in the Data Viewer in Power BI desktop such as this:
Then, if you insert the same table in a Table Visualization, the table will only display distinct values of the categories:
How can you set up a Table Visualization so that the data is displayed as it is in the Data Viewer where all observations are displayed?
Unfortunately, Power Bi Desktop currently does not have an option to display all observations in the Table Visualization(Oct 2018). I am optimistic the Power Bi team will correct this problem in a future release. If you feel strongly about this feature, please go to the Power Bi improvement Idea post and add your vote.
I'm answering this question to perhaps help others who come here looking for a work around until it gets implemented.
There is currently one work around that I know of: Add an index column to the data table, add this column to your table visualization, then shrink the column width of the index to hide the data. This is not a desirable work around, but might get you a solution in a pinch until the feature is implemented.
So for your example, to add an index column to your table, go to Edit Queries -> Add Column -> Index Column -> From 1
Then - back to your report, add the Index column to the Table Visualization and make sure you select Don't Summarize for the Index Column values tab pull down.
Once the index column is added to your table, and you sort by the index your table visualization should look like the following:
The last step is to hide the index column by shrinking the column width of the index column. Before you do this, you need to turn off word wrap for the columns and the values. Go to the paint roller and in Column Header and Values make sure you turn word wrap off:
then your final table will look like the following with all of the values required. The grey box is my mouse over the shrunk index column and wont show up for you unless you mouse over that area:

Split column in two with Power BI desktop

My table has the following structure:
I need to analyse the variance of views by page title from the periods in column B: 2016 vs 2015.
For that, I'm using Power BI desktop. I'm trying to split column B in two: one with the period 1/jan/2015-19/ago/2015 and other with 1/jan/2015-19/ago/2015
Is this possible to do? How?
I tried unpivoting but it didn't work.
Thanks in advance for helping!
If I understood your need correctly you might be able to achieve your result with your same data without the need to split your columns:
Insert a Clustered Column Chart visual.
On the "Axis" field of the visual drag your "Title" column.
On the "Legend" field of the visual drag your "Dates" column.
On the "Value" field of the visual drag your "Views" column and then select "Variance" on the dropdown for "Value".
This should compare the variance of the number of views for each of the pages between the 2015 and the 2016 period.