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.
Hi All
Below script is working fine , But the expression need to enter COMPANY field. it there a way to make it flexiable ? so that can be use for all field .
Solved! Go to Solution.
Contribution = 100 * DIVIDE(SUM('Table'[Sales]), CALCULATE(SUM('Table'[Sales]), ALLSELECTED('Table'[COMPANY])))
Contribution = 100 * DIVIDE(SUM('Table'[Sales]), CALCULATE(SUM('Table'[Sales]), ALLSELECTED('Table')))
@Paulyeo11 , not very clear , but try allselected
Contribution = 100 * DIVIDE(SUM('Table'[Sales]), CALCULATE(SUM('Table'[Sales]), ALLSELECTED('Table')))
also no need *100 (100*) as you can mark it as % column
Hi Amit
I have try allselected , got syntax error
Contribution = 100 * DIVIDE(SUM('Table'[Sales]), CALCULATE(SUM('Table'[Sales]), ALLSELECTED('Table'[COMPANY])))
Contribution = 100 * DIVIDE(SUM('Table'[Sales]), CALCULATE(SUM('Table'[Sales]), ALLSELECTED('Table')))
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 |
---|---|
107 | |
93 | |
77 | |
65 | |
53 |
User | Count |
---|---|
147 | |
106 | |
104 | |
87 | |
61 |