Forum Discussion

Zhinee's avatar
Zhinee
Helper III
9 months ago
Solved

Stop child visual from querying all rows when parent selection is empty

 

My parent table is SESSION_TRANS, and my child visual is JOBLET. I want the child visual to show nothing if the user doesn’t click on any row in the session table.

I created this measure:

IsSessionSelected = IF( ISFILTERED(SESSION_TRANS[Session ID]), 1, 0 )

Then I applied a visual-level filter on the joblet visual: IsSessionSelected = 1.

This works when the session is limited (for example, sessions in the past few hours). But if I clear the filter so that all sessions are shown, the joblet visual throws this error:

"Resultset of a query to external data source exceeded the maximum allowed size of 100,000 rows."

I understand this is because the joblet visual has too many records due to no limit on the sessions.

It seems like the joblet is still loading data behind the scenes even when IsSessionSelected = 0.

I am using DirectQuery mode.


How can I address this?

 

4 Replies

  • In Power BI, "nothing selected" is the same as "everything selected".  That is by design, for better or for worse.

     

    Have a mandatory filter that keeps the rowcount below 1 million.

  • v-echaithra's avatar
    v-echaithra
    Community Support

    Hi Zhinee ,

    Thank you lbendlin  for your inputs.

    We’d like to follow up regarding the recent concern. Kindly confirm whether the issue has been resolved, or if further assistance is still required. We are available to support you and are committed to helping you reach a resolution.

    Best Regards,
    Chaithra E.