Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi!
Can someone help me with a measure for Power Query, that will show total volume for stores, which sell current group of goods?
Here is an example of my row data:
I count results manually. So I need DAX formula, that can summarise shops volumes for every fruit (but only in that shops where current fruit is selling).
For instance, in jan oranges were selling in shops A and C. So we need to get sum of total volumes in these shops in jan: 2 + 5 + 1 + 7 + 5 = 20.
Than I plan to use measure in pivot table.
I am new in Power Query, so sorry if I got mistakes.
Solved! Go to Solution.
Hi, @Sofiya72
try below measure code
result =
var a = VALUES('Table'[shop])
var b = CALCULATE(
SUM('Table'[volume]),
'Table'[shop] in a,
ALL('Table'[fruit])
)
return
b
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !!
Hi, @Sofiya72
try below measure code
result =
var a = VALUES('Table'[shop])
var b = CALCULATE(
SUM('Table'[volume]),
'Table'[shop] in a,
ALL('Table'[fruit])
)
return
b
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !!
Hi @Sofiya72
I have taken a data format similar to you and this is how you can achieve it, you do not need to create any measure for that you use matrix visual for same.
Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Check for more intersing solution here: www.youtube.com/@Howtosolveprobem
Regards
Hi! I see you summarise total volume by SKU, by check my results table: I need to summarise total volume by store, that sell each SKU.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
15 | |
11 | |
8 | |
8 | |
8 |
User | Count |
---|---|
22 | |
13 | |
11 | |
10 | |
10 |