Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

How to create a measured column by disaggregating a value based on weights listed in a column

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

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

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.

 

Picture1.png 

 

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.


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

2 REPLIES 2
Jihwan_Kim
Super User
Super User

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.

 

Picture1.png 

 

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.


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.
Anonymous
Not applicable

HI @Jihwan_Kim,

your solution is actually working. Thank you so much!

 

Regards,

Walter

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.