Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi community,
I am struggling with a rather theoretically easy task but not immediate on DAX that has kept me busy for a while.
I need to create a measured column by disaggregating a value based on some weights that are listed in a column.
So, as an example, the value I want to diasaggregate is 100 and the weights are listed in a column as:
Weights
0.3
0.4
0.6
0.3
0.4
The result I am targeting in this example is:
Weights Values
0.3 15
0.4 20
0.6 30
0.3 15
0.4 20
Any idea?
Thanks,
Walter
Solved! Go to Solution.
Hi, @Anonymous
Please correct me if I wrongly understood your question.
Please check the below picture if it is what you are looking for.
The link (sample pbix file) is down below, and the DAX measure is written in the pbix file.
https://www.dropbox.com/s/ddphvu7eutfylc1/Walter.pbix?dl=0
Weighted Value =
DIVIDE (
SUM ( Weights[Weight] ),
CALCULATE ( SUM ( Weights[Weight] ), ALL ( Weights ) )
)
* SELECTEDVALUE ( ValueSelect[ValueSelect] )
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster.
Hi, @Anonymous
Please correct me if I wrongly understood your question.
Please check the below picture if it is what you are looking for.
The link (sample pbix file) is down below, and the DAX measure is written in the pbix file.
https://www.dropbox.com/s/ddphvu7eutfylc1/Walter.pbix?dl=0
Weighted Value =
DIVIDE (
SUM ( Weights[Weight] ),
CALCULATE ( SUM ( Weights[Weight] ), ALL ( Weights ) )
)
* SELECTEDVALUE ( ValueSelect[ValueSelect] )
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
19 | |
7 | |
6 | |
5 | |
4 |
User | Count |
---|---|
26 | |
10 | |
10 | |
9 | |
6 |