I have a column with lengthy values in my Power BI table. I would like it to only show a part of it so that the table isn't hard to navigate, and once the viewer clicks or do something, then it shows the whole value. Is there a way I can accomplish this?
There are posts about collapsing/expanding the whole column, as in keep it disappeared and then appear once you expand or vice versa, but I can't find a way to collapse/expand each values.
Following is an example. As you can see, "Bio" column is very lengthy, so I would it to show maybe a few lines in original view, and once the viewer wants to see the full Bio of that authors, then they can by a click or any action.
Any help would be much appreciated!
OriginalTable
What I want
You can add a column with the truncated version, and a Drill Through to a report page for that single bio.
Related
Hello I am trying to raise awareness about his subject I am facing this issue, I've posted on microsoft PBI community as wel, Did you even know about this, if so, how did you do to workaround this?
https://community.powerbi.com/t5/Desktop/Beware-Misleading-behaviour-using-Select-all-or-none-selected/m-p/1982650#M749494
As stated in the post, I have just found half a paragraph hinting about this behaviour and all the people that I've talked to did not even know it behaved this way.
TL:DR. If you use the filter panel to filer a slicer (filter on this visual) in order to restrict the selection of a slicer (so your end user does not get lost in too many options or you want a dynamic slicer showing last x months, TOP N , basically any other advanced filtering optins given using this feature).
It only visually filters the slicer so if the user ends up using "select all" or even clearing the selection, all the data would be selected even the data you (as designer) wanted to filter out. Which is misleading since the end user would see the tag "all" over the slicer selection but when clicking on it it would only show the filtered out values, so they would naturally assume that "all" means just those values and not allvalues (hidden values included).
Example
there are only two values to be selected in the slicer but the select all option actally seelcts all values including hidden ones
One thing to check first, I bet you did not apply the filtered values in the filter pane on the whole page, rather you applied it only on the visual. Try to apply that on the whole page and it seems to work for me.
I am using a power BI matrix report and I want to fill the blank values to 0 in the matrix tables. The data source would be a table from SQL server.
I am looking for options to fill the blank values with 0 using power BI? Any help would be greatly appreciated.
In a given table, (Blank) often comes from "null" in a column. Under Transform data, you can select the column you want to edit, then select "Replace Values" in the Home ribbon. Then it just works like a find and replace in any editor.
As mentioned in the comments, Blank is there for a reason and replacing to 0 may be a bad idea, depending on the data. In general, I try not to destroy any data unless entirely unavoidable.
Consider other solutions:
Like if you just don't want your calculated visualizations to show "(Blank)", do something like Measure = CALCULATE(<something>)+0 and it'll show a calculation of 0 if theres nothing in the column.
If you have a slicer showing a "(Blank)" category, just filter it out in the filters sidebar.
so, I got 3 xlsx full of data already treated, so I pretty much just got to display the data using the graphs. The problem seems to be, that Powerbi aggregates all numeric data (using: count, sum, etc.) In their community they suggest to create new measures, the thing is, in that case I HAVE TO CREATE A LOT OF MEASURES...Also, I tried to convert the data to text and even so, Powerbi counts it!!!
any help, pls?
There are several ways to tackle this:
When you pull a field into the field well for a visualisation, you can click the drop down in the field well and select "Don't summarize"
in the data model, select the column and on the ribbon select "don't summarize" as the summarization option in the Properties group.
The screenshot shows the field well option on the left and the data model options on the right, one for a numeric and one for a text field.
And, yes, you never want to use the implicit measures, i.e. the automatic calculations that Power BI creates. If you want to keep on top of what is being calculated, create your own measures, and yes, there will be many.
Edit: If by "aggregating" you are referring to the fact that text values will be grouped in a table (you don't see any duplicates), then you need to add a column with unique values to the table so all the duplicates of the text values show up. This can be done in the data source by adding an Index column, then using that Index column in the table and setting it to a very narrow with to make it invisible.
I've done some basic things in a query editor via the user interface. For instance, I renamed a column. Now I'm going back to review, but I'm having a hard time figuring out where the details of the step are.
In Applied Steps, on the "Renamed Column", I can right click and go to properties, but it does not list the old and new column name. There is no gear/setting icon to the right. How do I figure out what the new and old column names are?
For the "remove top rows" step, I can click on the gear icon to the right, and get a box with the number of rows, and edit it. How can I do the same with other steps such as renaming columns?
Not all commands have a gear icon in the Applied Steps panel. The Advanced editor can be quite overwhelming at first.
To ease into things, go to the View ribbon and ensure that "Formula Bar" is ticked, like in the screenshot below. Now you can select a step in the Applied Steps panel and its formula shows in the formula bar, very much like in Excel. You can edit the formula and change parameters as you see fit.
You can expand the formula bar to show a few more rows, with the icon at the right of the formula bar.
The code behind the Query Editor is Power Query. Microsoft Power BI ports many useful / frequently-used functions to the user interface for easier / better user experience (but not all functions, obviously).
Therefore, if you want to find the details of a step, you can always go to the Advanced Editor and check out the original Power Query code to find the corresponding line of code. You can also modify the code directly if you understand Power Query.
Below is a screenshot of the Advanced Editor, where the Table.RenameColumns function in Power Query is highlighted, which is the same as Rename Column in Power BI:
I have gone through this tutorial
https://powerbi.microsoft.com/en-us/documentation/powerbi-desktop-tutorial-analyzing-sales-data-from-excel-and-an-odata-feed/
and was having some issues at Task 4 - Step 1 that I have somewhat resolved but would like to find a better way to complete the task.
The issue of this is that the title of my graph is Sum of UnitsInStock by ProductName but I just want it to be "UnitsInStock by ProductName".
See image below:
Sum of UnitsInStock by ProductName
I think the issue is that in the tutorial link it has the "UnitsInStock" column is aggregated already (which you can see in the field pane) whereas I had to aggregate the data myself. I think to fix this I just have to aggregate the data in the query editor but I haven't been able to figure out how to do this.
If someone could point me in the right direction that would be great!
The button you want is Group By - it's on the Home ribbon in the central Transform section.
Select your grouping columns before hitting it, to preload them in the Group By window. I haven't followed that tutorial so you will need to decide what to select. Any column you don't select for Group By or aggregate (see below) will be removed by this Step.
In the bottom section of the Group By window, click the + button to add an aggregation, then choose Sum and choose your column (e.g. UnitsInStock ). You have to type the output column name.