Daily DAX : Day 425 INFO.PROPERTIES
INFO.PROPERTIES DAX Function
Category: Information Function (Power BI specific)
Syntax
INFO.PROPERTIES()
What It Returns
Returns a table containing metadata (properties) about the current Power BI model, such as:
- Model name
- Compatibility level
- Refresh date and time
- Power BI service dataset ID
- Whether it's in Import, DirectQuery, or Composite mode
- Last processed time
- Server name, database name (in DirectQuery)
Example Output (Sample)
| Property Name | Value |
|---|---|
| ModelName | Sales Report 2025 |
| CompatibilityLevel | 1600 |
| LastUpdate | 2025-12-10T08:30:22 |
| DataSourceType | Import |
| RefreshedTime | 12/10/2025 08:30 AM |
| DatasetId | a1b2c3d4-5678-90ef-... |
Common Use Cases
1. Show last refresh time on a report page
Last Refresh = "Data refreshed on: " & FORMAT(MAX(INFO.PROPERTIES()[RefreshedTime]), "dddd, mmmm dd, yyyy hh:nn AM/PM")
2. Display model name and mode dynamically
Report Info =
"Report: " & LOOKUPVALUE(INFO.PROPERTIES()[Value], INFO.PROPERTIES()[Property], "ModelName") &
" | Mode: " & LOOKUPVALUE(INFO.PROPERTIES()[Value], INFO.PROPERTIES()[Property], "DataSourceType")
3. Conditional logic based on environment
IsDirectQuery =
LOOKUPVALUE(INFO.PROPERTIES()[Value], INFO.PROPERTIES()[Property], "DataSourceType") = "DirectQuery"
Note: INFO.PROPERTIES() only works in Power BI Service and Power BI Report Server when the report is published.
It returns blank or errors in Power BI Desktop in most cases.
Summary
Use INFO.PROPERTIES() when you want to display dynamic metadata in your published Power BI reports, especially:
- Last data refresh timestamp
- Report name or dataset info
- Environment-specific behavior
It is one of the few DAX functions exclusive to the Power BI service.
Comments
Post a Comment