Forum Discussion

slawxsky's avatar
slawxsky
Frequent Visitor
1 year ago
Solved

DirectQuery - Measures problem?

Hello, Hello, I have the following problem with direct query. I create two measures:     SV_cnt_of_jobs = SELECTEDVALUE(Number_of_jobs_in_flow[CNT_OF_JOBS]) SV_sum_of_done = SELECTEDVALUE(Don...
  • Anonymous's avatar
    Anonymous
    1 year ago

    Hi slawxsky ,

     

    After testing, there is no error reporting when the size of the data volume is relatively small. 

     

     

     

    Therefore this problem can be solved by optimizing the report, query or dataset to reduce memory consumption.
    1. Simplify queries: First look at your queries and their transformations to see if they can be simplified. Remove unnecessary columns, filters or transformations that may be taking up too much memory. Make sure you are only loading data that the report actually needs.
    2. Reduce the amount of data: If the dataset is too large, consider limiting the amount of data loaded into Power BI. You can filter the data to load only a subset of the data, such as a specific date range or related categories.
    3. Use data aggregation: Consider aggregating or summarizing data at the data source level, such as in a SQL query or Power Query, before importing the data into Power BI. this can significantly reduce the amount of data that needs to be loaded into memory.

     

    For more details, you can refer to below document:

    DirectQuery model guidance in Power BI Desktop - Power BI | Microsoft Learn

     

    Best Regards,
    Adamk Kong

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.