He 1-GB Dataset Limitation Does Not Apply To Direct Query
He 1-GB Dataset Limitation Does Not Apply To Direct Query
He 1-GB Dataset Limitation Does Not Apply To Direct Query
Advantages::
1.Direct Query, or a direct connection to source data, is a process that accesses the data
source each time that a dashboard element (or visual) is created or modified.
2.Direct query helps us to work on very large datasets, and the 1-GB dataset limitation
does not apply to Direct Query
3. By using composite models, a report can seamlessly include data connections from more than
one Direct Query or Import data connection, in any combination you choose.
Composite models: Allows a report to have multiple data connections, including Direct Query
connections or Import, in any combination.
4. Performance and load - All Direct Query requests are sent to the source database, so the
time required to refresh a visual is dependent on how long that back-end source takes to
respond with the results from the query (or queries). The recommended response time (with
requested data being returned) for using Direct Query for visuals is five seconds or less, with a
maximum recommended results response time of 30 seconds. Any longer, and the experience of
a user consuming the report becomes unacceptably poor. In addition, once a report is published
to the Power BI service, any query that takes longer than a few minutes will time out, and the
user will receive an error.
5. Many data modeling and data transformations are available when using Direct Query,
though with some limitations. When creating or interacting with a visualization, the underlying
source must be queried and the time necessary to refresh the visualization is dependent on the
performance of the underlying data source. When the data necessary to service the request has
recently been requested, Power BI Desktop uses recent data to reduce the time required to
display the visualization. Selecting Refresh from the Home ribbon will ensure all visualizations
are refreshed with current data.
6.Underlying data changes can require a refresh of data, and for some reports, the need
to display current data can require large data transfers, making re-importing data
unfeasible. By contrast, Direct Query reports always use current data
Limitations:
SAP HANA
SAP Business Warehouse
SQL Server Analysis Services
Power BI datasets
Azure Analysis Services
When you connect to these multi-dimensional sources by using Direct Query, you can't
connect to another Direct Query source or combine it with Import data.
If the Query Editor query is overly complex, an error will occur. To remedy the
error you must either delete the problematic step in Query Editor, or Import the
data instead of using Direct Query. For multi-dimensional sources like SAP
Business Warehouse, there is no Query Editor
Relationship filtering is limited to a single direction, rather than both directions
(though it is possible to enable cross filtering in both directions for Direct
Query as a Preview feature). For multi-dimensional sources like SAP Business
Warehouse, there are no relationships defined in the mode
Time intelligence capabilities are not available in Direct Query. For example,
special treatment of date columns (year, quarter, month, day, so on) is not
supported in Direct Query mode.
For example, a calculated column on an Import table can refer to other tables, but a
calculated column on a Direct Query table can still refer only to columns on the same tab
There is a one-million-row limit for returning data when using Direct Query. The
limit does not affect aggregations or calculations used to create the dataset
returned using Direct Query, only the rows returned. For example, you can
aggregate 10 million rows with your query that runs on the data source, and
accurately return the results of that aggregation to Power BI using Direct
Query as long as the data returned to Power BI is less than 1 million rows. If more
than 1 million rows would be returned from Direct Query, Power BI returns an
error.
Tips::
To ensure that queries sent to the underlying data source have acceptable performance,
limitations are imposed on measures by default. Advanced users can choose to bypass
this limitation by selecting File > Options and settings > Options and
then DirectQuery, then selecting the option Allow unrestricted measures in DirectQuery
mode. When that option is selected, any DAX expression that is valid for a measure can
be used. Users must be aware, however, that some expressions that perform very well
when the data is imported may result in very slow queries to the backend source when in
DirectQuery mode.
Load on the source database should also be considered, based on the number of Power
BI users who will consume the published report. Using Row Level Security (RLS) can have
a significant impact as well; a non-RLS dashboard tile shared by multiple users results in
a single query to the database, but using RLS on a dashboard tile usually means the
refresh of a tile requires one query per user, thus significantly increasing load on the
source database and potentially impacting performance.