This is very strange, I have been working on this table(model) in Power BI and one of the columns is Timestamp. I used it as the axis for one visual but now the column is gone and no longer in the columns in the Field section on the right, though the visual is still working fine. What could have happened?
You could have accidentally deleted it...
Go to Transform Data to get tot he PowerQuery editor.
Click on the relevant table and then look at the APPLIED STEPS. Click on each one from the bottom up to preview the data at the selected steps to see where it has gone wrong.
Also check your data source - has it disappeared from there maybe?
Related
I'm using Power BI (May 2020 edition) and I've encountered a very weird problem. My visuals are based on SQL Server Stored Procedure. When I initially displayed data on visuals, I realized I need to add extra column on backend and switch columns on visual. So, I did the following:
I modified my Stored Procedure and applied changes on back-end
I navigated to Data View and clicked on Edit Queries menu item. Then I right-clicked on the column I needed to move and clicked "Move Right". This way 2 columns swapped the order in which they were displayed.
Then I clicked Refresh All and after a while got all my changes - recently added column from SP and swapped columns displayed correctly on Edit Queries window.
After all these manipulations I clicked Close & Apply and was redirected to Data View of my Visuals. None of the changes were reflected. I went to Report View - the same thing, of course.
Did I do anything wrong or it's a known bug that hopefully has workaround?
Appreciate everybody's help.
P.S. I was able to refresh the data by right-clicking on "Query" dropdown on Data View and clicking "Refresh Data". However, columns order still not resolved. Looks like everything we do under Edit Queries is not reflected in May 2020 edition. Please correct me if I'm wrong or if there is a workaround. Unfortunately I can't upgrade to newer version as our server doesn't support it.
Resolved the issue - instead of going to Edit Query mode, I simply dragged fields to appropriate place in Report Mode, Visualizations pane. But I still remain puzzled why Edit Queries changes are not reflected when Close & Apply is clicked.
I am trying to apply conditional formatting to a field of a table in a report in Power BI online.
The report is connected to a dataset that is in MS Teams and continues to function. All existing conditional formatting is unchanged.
These are the steps I took:
Switch report to edit mode
Select table
Select conditional formatting - advanced controls
In the pop-up window, select "Based on Field"
Then, the drop down list is blank and says {{::placeholderText}}.
This can now be recreated in any report, new or existing, where I attempt conditional formatting.
I tried creating a new report from a new dataset, and attempted to add conditional formatting to a table. The same result happened.
I tried signing out of my Microsoft account and signing back in, but no effect.
I was able to get it working by adding ?conditionalFormattingModern=1 to the url for the online editor like this: https://app.powerbi.com/groups/me/reports/xxx/ReportSection?conditionalFormattingModern=1. (source of idea)
I'm not sure if it will work correctly after I publish the visual though. Apparently this isn't an issue on Power BI Desktop though- so it's probably fine.
Update: Not sure if I'm doing something wrong- but the conditional formatting doesn't seem to be actually applied. It's just that the editor window displays correctly.
I made some changes to my dataset in Power BI via the Power Query Editor.
I went to close the editor and apply my changes to the data.
I get "Query Errors" that appear, despite having handled the records. I've confirmed the error does not appear in any other columns.
When I go to apply the changes, the errors still appear.
Any suggestions?
Edit #1:
I tried changing the column to a text data type and then sorting to look at all of the values, but it says "Invalid cell value: '#N/A', which is weird. I wonder why it won't let me sort the data.
Seems the only way you can handle these types of values are to handle them outside of Power BI. Power BI cannot handle these values at this time.
I have some measures and a calculated field from a dataset that show me the following:
The highlighted row/column is just to show the different output.
This works great except that the data needs pivoting to looks like this:
I have tried to do this with a Matrix Visual but it seems you can not put Measures in for the Rows. I have looked into it on the web and nothing is really doing what I need.
You can put your months as columns and then go to the Format pane, Values section, and toggle the option Show on rows:
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: