Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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 voided and I want to subtract these numbers from the sales number. The table has a field that shows different statuses such as sold, void, unconfirmed etc.
In the tile I apply a date filter and I can also filter on the status column, in the filter I can see the number of sold items and the number of void items. How can I subtract the void items from the sales items, I am assuming this is a measure but not sure how to write this.
Many thanks in advance
Solved! Go to Solution.
@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.⚡
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
That worked great, thank you for your help.
@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.⚡
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
99 | |
80 | |
70 | |
59 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |