Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Calculate a number within a tile

Hi   I am new to Power BI so apologies if this is a simple question. I have a tile that is used to show items sold, this number comes direct from a table with multiple columns. Some sales are then ...
  • parry2k's avatar
    5 years ago

    Anonymous here is what you can do, add following meaureS:

     

    Sum Quantity = SUM ( Table[Quantity] )
    
    Sum Sold = CALCULATE ( [Sum Quantity], Table[Status] = "Sold" )
    
    Sum Void = CALCULATE ( [Sum Quantity], Table[Status] = "Void" )
    
    Sold - Void = [Sum Sold] - [Sum Void] 

     

    You can do above in one measure as well but I prefer separate measure so that it is easy to make changes.

     

    Check my latest blog post Comparing Selected Client With Other Top N Clients | PeryTUS  I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

    ⚡Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡