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,
I'm unsure of how to phrase what I need, so I'll first attach an image of the desired result below:
Bold = Column Name
Italic = Record
This is my Competency Requirement table. I want to be able to summarize the QTY Completed column grouped by each Competency, and then take that sum and divide it by the sum of the QTY Needed column. The desired result is the % Completed column.
Using this image as an example, I summarized the QTY Completed for Requirement A and Requirement B where the Competency is Gold App Dev, and then divided that number by the QTY Needed for Requirement A and Requirement B where the Competency is Gold App Dev as well.
I know two summarizations with a division within a group by is not easy, and I appreciate any help that can be offered! 🙂
Solved! Go to Solution.
Hey,
I created this measure:
Measure = CALCULATE( SUMX( VALUES('Table1'[Competency]) , var completed = CALCULATE(SUM(Table1[QTY Completed])) var needed = CALCULATE(SUM(Table1[QTY Needed])) return DIVIDE(completed , needed) ) ,ALL(Table1[Requirement]) )
Based on your sample data I can now create this table visual:
Hopefully this is what you are looking for.
Regards,
Tom
It didn't work for my dataset
Hey,
I created this measure:
Measure = CALCULATE( SUMX( VALUES('Table1'[Competency]) , var completed = CALCULATE(SUM(Table1[QTY Completed])) var needed = CALCULATE(SUM(Table1[QTY Needed])) return DIVIDE(completed , needed) ) ,ALL(Table1[Requirement]) )
Based on your sample data I can now create this table visual:
Hopefully this is what you are looking for.
Regards,
Tom
@TomMartens wrote:Hey,
I created this measure:
Measure = CALCULATE( SUMX( VALUES('Table1'[Competency]) , var completed = CALCULATE(SUM(Table1[QTY Completed])) var needed = CALCULATE(SUM(Table1[QTY Needed])) return DIVIDE(completed , needed) ) ,ALL(Table1[Requirement]) )Based on your sample data I can now create this table visual:
Hopefully this is what you are looking for.
Regards,
Tom
Thanks a bunch!!
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 |
---|---|
42 | |
21 | |
21 | |
14 | |
13 |
User | Count |
---|---|
43 | |
39 | |
33 | |
18 | |
17 |