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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
JLD
Frequent Visitor

Transform in Base100% the product of 2 Base100% weights

Dear all,

 

I have 2 weights (measures for which the sum = 100% for each month : "Daily Weight %" & "Profil Weight %").

I want to multiply those 2 weights (through a measure "Final Weight %") and that the results is also put back into a 100% weight.

 

The 2 first measures that are OK are the following :

 

Daily Weight % = 
        SUM ([Daily Weight QTY] )
        / 
        CALCULATE (SUM ([Daily Weight QTY] ), FILTER(ALL('Date'), 'Date'[YYYYMM]= MIN('Date'[YYYYMM])))

 

 

Profil Weight % = 
        SUM ( 'Profil Saisonnier'[Coef de Profil] )
        / 
        CALCULATE (SUM ( 'Profil Saisonnier'[Coef de Profil] ), FILTER(ALL('Date'), 'Date'[YYYYMM]= MIN('Date'[YYYYMM])))

 

JLD_0-1657389760884.png

 

However I need your help for the 3rd measure : it is supposed to multiply the 2 first measures and put it back to a 100% sum by dividing by the scalar product for each day of the month. For example, the first line result should be : (3,13% * 3,04%) / (3,13%*3,04% + 3,27%*2,96%.....etc over the 31 days of the month) 

I tried the following but it's not working because each row equals 100% :

 

Final Weight % = 
    [Profil Weight %] * [Daily Weight %] 
    /
    SUMX('Date', [Profil Weight %] * [Daily Weight %])

 

JLD_2-1657390734224.png

 

Thanks a lot for your help !

1 ACCEPTED SOLUTION

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

7 REPLIES 7
Ashish_Mathur
Super User
Super User

Hi,

Share the download link of your PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi,

Here is a much simpler version of the modele, with random data, but still with the same issue.

 

https://www.dropbox.com/s/mz5fa30cnaum5fq/weights_product_test.pbix?dl=0

 

Hi,

Download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi,

 

The problem in what you sent is that you are just multiplying the 2 measures. Then the total shows "100%" but the sum of the results for the 31 days of the month is not 100% at all (0,2% + 0,2% + 0,1%...... = 3,1% and not 100%).

What I need is that, for the 1rst line for example, the 0,2% is converted into 0,2% *(100%/3,1%) = 6;4%.

 

Thank you,

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

This works, thank you !

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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