Forum Discussion

Bandy's avatar
Bandy
Frequent Visitor
5 months ago
Solved

BQ - Direct Query 1 million row limit

Power BI DirectQuery + BigQuery – Dynamic Measure causing 1M row limit error I have a Star Schema model with the following setup: 1 Fact table with ~10 billion rows 4 Dimension tables, each wi...
  • johnt75's avatar
    johnt75
    5 months ago

    The only other thing I could think to try is to force the calculation of both measures in the hope that that will enable Power BI to pass the filter to BigQuery like it does when you call a simple measure.

    You could either use IF.EAGER or rewrite the code using variables like

    Measure3 =
    VAR Measure1 = [Measure1]
    VAR Measure2 = [Measure2]
    RETURN
        IF ( SELECTEDVALUE ( NewTable[field] ) = "Cost", Measure1, Measure2 )
    

    Performance isn't going to be good, but then I would think that performance will already be so slow that you may not notice the difference.