Extract measure alias assigned in a visual - powerbi

Is there an external tool for Power BI which allows automatically to extract column or measure alias name which as been assigned in a visual. Is it stored anywhere in DMV?

I don't think it is in the DMV but you can see it easily enough. If you change your .pbix to a .zip and open the archive and then extract Layout, you can open up the layout json. In there, under visual containers, config, there is an attribute for display name and the measure that is used to drive it.

Related

Dynamic folder path change in Power BI using Report page

Is there a possibility to have something similar like in Excel, where you have a drop down list on workbook then you choose specific folder, click refresh button and there you go...I mean there is parameter option in Power BI which is fine, but is there an option or some tweak or else, where you can have that drop down list (those parameters) visible on report page in Power BI, so I can simply and quickly choose certain folder and get the data?
I didn't upload any pictures, I guess it is quite understandable.
Thanks in advance!
The only way for the report author to change the folder path in a fixed PQ is through parameters.
In order for you to choose different folder paths from a list of paths would be authoring the parameter table with List of Values and select a single value as the Default value and/or current value.
When you load the query, it gets loaded with default path and when you need the query to be loaded data from a different folder, you can do home -> Edit Parameters and the drop down would be available to you.
Once you select a different path on the drop down, you need to refresh all the queries to have up-to-date data reflected.

How to search for text in all measures?

Is there any way to search for text in all the measures?
For example - suppose I want to find whether ColumnX is used in any measure then currently I have to look into each measure, is there a better/quicker way?
There are Power BI External Tools which will allow you to do that, for example this one - Document Model.
Or you can save your .PBIX report as a template (.PBIT), unzip it and look at the DataModelSchema.json file, where all measures are in plain text (more details here). According the OP, for Live connection reports, these can be found in Report\Layout file.

Power BI change original table name which is displayed in Daxstudio

I noticed very odd thing that Daxstudio allows you to view original table name. It is a bit niuanse because when you rename table created in M then Daxstudio still refers to it using original table name, not the new name. Here is how to reproduce the bug.
Power BI > Home > Enter Data
Name the table RedTable.
Run a query in Daxstudio:
EVALUATE
DISTINCT('RedTable'[Column1])
Now rename the table to BlueTable:
And run the query in Daxstudio for a new table name:
You can still see the original table name in the Query column of Server Timings.
Is there a way to change this original table name created with M?
I can add that this bug is applicable only to tables created with M (be it Enter Data or plug to Server). This bug is not reproducible with DAX tables. The DAX tables are updated after you change their name and actual (not original) name is display in Query column of Server Timings of Daxstudio.
This is not a problem of DAX Studio, even though we could try to fix it in DAX Studio. :)
Here is what happens: the Tabular model (used also by Power BI) has an ID for each object and then a Name. The ID is assigned by the Power BI and Visual Studio UI when you create an entity (table/column/...). Visual Studio shows the ID as a readonly property, whereas Power BI doesn't show that property at all.
The ID is used internally to reference the objects in the Tabular Object Model (TOM). It is also used to identify column in the interaction between Formula Engine and Storage Engine.
The Storage Engine queries captured by DAX Studio are messages intercepted with a debugging session connected to the Analysis Services session and in these messages the text represents entities (in particular table names) through their ID rather than through the Name property.
As Microsoft would say, this is "by design".
So far, DAX Studio simply capture the text of the storage engine queries and display this information.
However, DAX Studio "massages" the text, removing a lot of "noise" and making the query more readable. During this phase, it is possible to consider renaming IDs with Names.
I just created a feature request. That was easy. When to implement the feature, finding the time is much harder!

Power BI - Use slicer to fetch file from folder

I have files in a folder which have same structure. The only difference between them is that for each day a new file is created which is named as date of the day.
So if file is created on 11th November 2019, its name would be 11092019.xlsx.
I have created a slicer which fetches names of all files present in this folder.
Keeping in mind that file format is same and only difference is in their file name and data values in them. Is there any way so that when I select a value from slicer the respective files data will be displayed in table visual ?
It is not possible to load a file interactively based on the slicer value.
You can achieve this by,
Load all files in the folder.
Combine them into a single table, where you need to add a "File Name" column.
Use slicer to show records coming from the specific file.

Changing the query data source to new updated sheet questions

We are utilizing an excel monthly report in our power bi project that has added measure columns, and we keep the sheets the fields pull the data from in one folder. When we get each month's updated excel sheet, would we be able delete the old one, add the new report to the folder with the exact same name as the old, and refresh the power bi query to use the new updated data? All the column headers would remain the same, the only thing that would be changing is maybe the amount of rows and the data within them. If we were to keep all the names the same, the only thing changing is the data sheet itself (not the column headers just the data) would the added measure columns remain and work? The measure columns act as column data multipliers and filters, and it would be a pain to make new ones each month.
Thanks
Yes. If the file path and filename and sheet/table name all remain the same, Power BI won't know the difference and you shouldn't have trouble if the columns and headers stay consistent.
Additionally, if you don't want to rename the file or delete/move older files from the folder, you could do a Load from Folder query and sort by date created/modified and grab the top row instead of specifying the filename.