The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hey everyone,
I am very new to DAX functions and am having a hard time calulating a percentage. I would like to create a new column that contains the total percentage for a group of people.
To find the percentage I have to add the values from two columns together and divide by the values in a third column. I also need to total that percentage based on a group of people.
Thanks!
Solved! Go to Solution.
@Anonymous , It should work like
Divide(Sum(Table[Col1]) + Sum(Table[Col2]) , Sum(Table[Col3]) )
or
Divide(SumX(table, Table[Col1]+Table[Col2]) , Sum(Table[Col3]) )
@Anonymous , It should work like
Divide(Sum(Table[Col1]) + Sum(Table[Col2]) , Sum(Table[Col3]) )
or
Divide(SumX(table, Table[Col1]+Table[Col2]) , Sum(Table[Col3]) )
User | Count |
---|---|
13 | |
8 | |
7 | |
6 | |
5 |
User | Count |
---|---|
21 | |
15 | |
15 | |
10 | |
7 |