Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago
Solved

Measure to filter column values >=1

I have a table showing inventory across three main categories all in separate columns.  - Allocated to Demand - Allocated to Saftety Stock - Not Allocated   How can I create a measure for these ...
  • ryan_mayu's avatar
    ryan_mayu
    2 years ago

    Anonymous 

    pls try this

     

    Measure = switch(true(),SELECTEDVALUE('Table (2)'[column])="Allocated to Demand" && sum('Table'[Allocated to Demand Stock])>=1,1,SELECTEDVALUE('Table (2)'[column])="Allocated to Safety Stock"&&sum('Table'[Allocated to Safety Stock])>=1,1,SELECTEDVALUE('Table (2)'[column])="Not Allocated"&&sum('Table'[Not Allocated])>=1,1)
     
    pls see the attachment below