The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hello ,
Please let me know how can I get the following in Power BI. I need a sum/100 of calumn values that are Negative and from Quarter = Q2 FY21
It seem to be a simple task, but I cannot get it matched with my excel results. The result is -1.33
Below is the example table:
Quarter | Value |
Q2 FY21 | 21 |
Q2 FY21 | -43 |
Q2 FY21 | -90 |
Q1FY21 | 23 |
Q4 FY21 | -98 |
result | -1.33 |
Many Thanks!!
Solved! Go to Solution.
@Anonymous I don't know what DAX code @amitchandak provided is going to do, it is not even close to what you asked for, and also it has syntax error. Try following measure:
Result =
DIVIDE (
CALCULATE (
SUM ( Table[Value] ),
Table[Quarter] = "Q2 FY21",
Table[Value] < 0
),
100
)
Check my latest blog post Compare Budgeted Scenarios vs. Actuals to get a summary of my favourite Power BI feature releases in 2020
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.
yes missed the filter
calculate(sum(Table[Value]), filter(Table[Quarter] ="Q2 FY21" && Table[Value] <0 ))/100
@Anonymous You should tag regarding which solution you are referring too otherwise no idea what is not working or what you tried.
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.
@amitchandak unfortunately still it is not going to work, take it easy man, and pay attention to the details. Just a piece of advice. Cheers!!
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.
@Anonymous I don't know what DAX code @amitchandak provided is going to do, it is not even close to what you asked for, and also it has syntax error. Try following measure:
Result =
DIVIDE (
CALCULATE (
SUM ( Table[Value] ),
Table[Quarter] = "Q2 FY21",
Table[Value] < 0
),
100
)
Check my latest blog post Compare Budgeted Scenarios vs. Actuals to get a summary of my favourite Power BI feature releases in 2020
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.
Thank you!
@Anonymous , Try a measure like
calculate(sum(Table[Value]), filter(Table[Quarter] ="Q2 FY21"))/100
only negative values
yes missed the filter
calculate(sum(Table[Value]), filter(Table[Quarter] ="Q2 FY21" && Table[Value] <0 ))/100
Thanks, this works.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
113 | |
80 | |
78 | |
44 | |
37 |
User | Count |
---|---|
157 | |
112 | |
64 | |
60 | |
54 |