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.
I have a parameter setup for user to input target production. I have a table that have percent allocation and associated price.
Something similar to the following. Based on target, I would like to display Weighted average Price in a Card.
Tried Using measures for multiplying. While the Qty and Ext display properly, the Wgt. Avg is not returning proper value.
Can an
Target: | 3200 | Parameter Input | ||
TABLE | Calculated Columns | |||
Item | % Alloc | Unit P | Qty (Target*% alloc) | Ext. (Qty*Unit P) |
A | 25% | 22 | 800 | 17,600 |
B | 0% | 40 | - | - |
C | 40% | 30 | 1,280 | 38,400 |
D | 15% | 0 | 480 | - |
E | 20% | 45 | 640 | 28,800 |
3,200 | 84,800 | |||
Wgt. Avg P | 26.5 |
Solved! Go to Solution.
Hi @chalapathy ,
Here are the steps you can follow:
1. Create measure.
Wgt. Avg P =
DIVIDE(
SUMX(ALL('Table'),[Qty] * [Unit P])
,
SUMX(ALL('Table'),'Table'[%Alloc])* 3200)
2. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @chalapathy ,
Here are the steps you can follow:
1. Create measure.
Wgt. Avg P =
DIVIDE(
SUMX(ALL('Table'),[Qty] * [Unit P])
,
SUMX(ALL('Table'),'Table'[%Alloc])* 3200)
2. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Thank you. Sorry for the late reply. It was long weekend and holidaying.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
143 | |
80 | |
65 | |
52 | |
49 |
User | Count |
---|---|
212 | |
89 | |
79 | |
68 | |
60 |