Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
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])))
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 %])
Thanks a lot for your help !
Solved! Go to Solution.
Hi,
You may download my PBI file from here.
Hope this helps.
Hi,
Share the download link of your PBI file.
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.
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.
This works, thank you !
You are welcome.
User | Count |
---|---|
140 | |
113 | |
104 | |
77 | |
65 |
User | Count |
---|---|
135 | |
116 | |
101 | |
71 | |
61 |