Forum Discussion

Michele_I's avatar
Michele_I
Frequent Visitor
2 years ago
Solved

dynamically exclude records based on user defined conditions

Hi all, and thank you for any suggestion with this little issue. This is a semplified example, but my real model works the same way. I have a projects table (every row is a project) and a Localizat...
  • Greg_Deckler's avatar
    Greg_Deckler
    2 years ago

    Michele_I Well, if it works, it works. Probably not how I would have done it. I would have probably done something like:

    Budget OK = 
      VAR __Table = FILTER( ADDCOLUMNS('Projects', "__Selected", [Selection Measure]), [__Selected] = 1)
      VAR __Result = SUMX(__Table, [budget])
    RETURN
      __Result