Forum Discussion

Dunner2020's avatar
Dunner2020
Icon for Post Prodigy rankPost Prodigy
6 years ago
Solved

Creating filter as measure

Hi there,   I have a fact table which contains data about the sales such as what was sold, how much sold, when sold, who sold, how many customers bought particular sold, so on and so forth.  You ca...
  • mahoneypat's avatar
    6 years ago

    Your error is that you can't return a table as a scalar value.  You have to aggregate it first.  The most common way is to wrap your FILTER in a COUNTROWS ( FILTER(Table, Table[Column] >5))

     

    If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

    Regards,

    Pat