Forum Discussion

Bright_Chen's avatar
Bright_Chen
Frequent Visitor
1 year ago
Solved

Data limit Issues

Recently, the charts I had previously completed have started to display error messages and throw exceptions: "When a filter condition uses the In operator with a Table argument, all of the Expression...
  • v-achippa's avatar
    v-achippa
    1 year ago

    Hi Bright_Chen,

     

    Thank you for the response and detailed explanation. Based on your requirement please use a RANKX measure to calculate the rank of each name by total amount and then apply a visual level filter to display only the Top 5:

     

    • Create a measure for total amount, if not created already:

      TotalAmount = SUM('TableName'[Amount])

    • Now create a RANKX measure:

      NameRank = RANKX(ALLSELECTED('TableName'[Name]),

      [TotalAmount],,DESC, DENSE)

    Apply a visual level filter, in the visual’s Filters pane drag this NameRank measure and set the filter to less than or equal to 5.

    This flow is efficient, scalable and works in the new engine behaviour, no memory overhead or invalid filters.

     

     

    If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it! 

     

    Thanks and regards,

    Anjan Kumar Chippa