The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hello,
See the image below of the table I have and table/output I want. Basically I want to group by assignee and show the percentage of processes owned by the assignee that are done. How can I do this?
Thx!!
Solved! Go to Solution.
Hi, @Anonymous
You can try the following methods.
Measure =
Var _N1=CALCULATE(COUNT('Table'[Assignee]),FILTER(ALL('Table'),[Status]="Done"&&[Assignee]=SELECTEDVALUE('Table'[Assignee])))
Var _N2=CALCULATE(COUNT('Table'[Assignee]),FILTER(ALL('Table'),[Assignee]=SELECTEDVALUE('Table'[Assignee])))
Return
DIVIDE(_N1,_N2)
Table:
New table = SUMMARIZE('Table','Table'[Assignee],"Percent_Done",[Measure])
Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Anonymous
You can try the following methods.
Measure =
Var _N1=CALCULATE(COUNT('Table'[Assignee]),FILTER(ALL('Table'),[Status]="Done"&&[Assignee]=SELECTEDVALUE('Table'[Assignee])))
Var _N2=CALCULATE(COUNT('Table'[Assignee]),FILTER(ALL('Table'),[Assignee]=SELECTEDVALUE('Table'[Assignee])))
Return
DIVIDE(_N1,_N2)
Table:
New table = SUMMARIZE('Table','Table'[Assignee],"Percent_Done",[Measure])
Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, yes this does the trick!! Sorry for the delayed response, I was on vacation.
@Anonymous
Measure=
DIVIDE (
CALCULATE (
COUNTROWS ( t1 ),
FILTER ( VALUES ( t1[status] ), t1[status] = "Done" )
),
COUNTROWS ( t1 )
)
I did a summarizecolumns (code below) which gives me the output (screenshot below), but still I don't know how to divide row 1 (2) by 5 (sum of row 1 and 2)...the total of bob's items, and so on....
table2 =
SUMMARIZECOLUMNS (
table[assignee], table[status],
"Count", CALCULATE (
COUNT ( table[process])
)
)
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
80 | |
71 | |
51 | |
50 |
User | Count |
---|---|
128 | |
122 | |
77 | |
64 | |
60 |