The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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 |
---|---|
16 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
26 | |
13 | |
12 | |
8 | |
8 |