Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Applies to:
Calculated column
Calculated table
Measure
Visual calculation
DAX query
Returns a table with information about each storage file in the semantic model. This function provides metadata about storage files and their characteristics.
Syntax
INFO.STORAGEFILES ( [<Restriction name>, <Restriction value>], ... )
Parameters
Parameters are optional for this DAX function. When parameters are used, both must be given. More than one pair of parameters is allowed. The restriction name and value are text and entered in double-quotes.
| Term | Definition |
|---|---|
| Restriction name | Name of the restriction used to filter the results. |
| Restriction value | Value used to filter the results of the restriction. |
Restrictions
Typically, all columns of the DAX function results can be used as a restriction. Additional restrictions may also be allowed.
Return value
A table whose columns match the schema rowset for storage files in the current semantic model.
| Column | Description |
|---|---|
| ID | Unique identifier for the storage file |
| OwnerID | Identifier of the object that owns this storage file |
| OwnerType | Type of the object that owns this storage file |
| StorageFolderID | Foreign key to the storage folder containing this file |
| FileName | Name of the storage file |
Remarks
- Typically used in DAX queries to inspect and document model metadata.
- Permissions required depend on the host. Querying full metadata may require model admin permissions.
Example
The following DAX query can be run in DAX query view:
EVALUATE
INFO.STORAGEFILES()
Example 2 - DAX query with joins
The following DAX query can be run in DAX query view:
EVALUATE
VAR _StorageFiles =
SELECTCOLUMNS(
INFO.STORAGEFILES(),
"OwnerID", [OwnerID],
"Owner Type", [OwnerType],
"StorageFolderID", [StorageFolderID],
"File Name", [FileName]
)
VAR _StorageFolders =
SELECTCOLUMNS(
INFO.STORAGEFOLDERS(),
"StorageFolderID", [ID],
"Folder Name", [Name]
)
VAR _CombinedTable =
NATURALLEFTOUTERJOIN(
_StorageFiles,
_StorageFolders
)
RETURN
SELECTCOLUMNS(
_CombinedTable,
"Folder Name", [Folder Name],
"File Name", [File Name],
"Owner Type", [Owner Type],
"Owner ID", [OwnerID]
)
ORDER BY [Folder Name], [File Name]