Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Dear All,
I would need your support with the following formula :
Weight in % = CALCULATE(CALCULATE(sum('Orders - Accum'[Value]),'Incoming Orders - Accum'[Attribute]="Requested Tons"),FILTER('Orders - Accum','Orders - Accum'[Month]=[Month Under Analysis]))/CALCULATE(CALCULATE(sum('Orders - Accum'[Value]),'Incoming Orders - Accum'[Attribute]="Requested Tons"),FILTER(ALL('Orders - Accum'),'Orders - Accum'[Month]=[Month Under Analysis]))
Basically it calculates the weight of each product by total month ..
Is there a way to make the calculation dividing each product by not only month by every filter applied ?
Let me know if any ideas..
Thanks a lot
Alex
Solved! Go to Solution.
try with ALLSELECTED
Weight in % = CALCULATE ( CALCULATE ( SUM ( 'Orders - Accum'[Value] ), 'Incoming Orders - Accum'[Attribute] = "Requested Tons" ), FILTER ( 'Orders - Accum', 'Orders - Accum'[Month] = [Month Under Analysis] ) ) / CALCULATE ( CALCULATE ( SUM ( 'Orders - Accum'[Value] ), 'Incoming Orders - Accum'[Attribute] = "Requested Tons" ), FILTER ( ALLSELECTED ( 'Orders - Accum' ), 'Orders - Accum'[Month] = [Month Under Analysis] ) )
Hi @alexbalazsalex,
Have you solved your problem?
If you have solved, please always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.
If you still need help, please share some data sample which could reproducec your scenario and your desired output so that we could help further on it.
Best Regards,
Cherry
try with ALLSELECTED
Weight in % = CALCULATE ( CALCULATE ( SUM ( 'Orders - Accum'[Value] ), 'Incoming Orders - Accum'[Attribute] = "Requested Tons" ), FILTER ( 'Orders - Accum', 'Orders - Accum'[Month] = [Month Under Analysis] ) ) / CALCULATE ( CALCULATE ( SUM ( 'Orders - Accum'[Value] ), 'Incoming Orders - Accum'[Attribute] = "Requested Tons" ), FILTER ( ALLSELECTED ( 'Orders - Accum' ), 'Orders - Accum'[Month] = [Month Under Analysis] ) )
It seems to be weorking thanks a lot !
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
99 | |
80 | |
70 | |
59 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |