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 September 15. Request your voucher.
Hello,
I am new on the forum and would be very gratefull if some of you could tell me how to do something as simple a the calculation of a % of achievement between two columns from a single database.
So far, I just create a first column calcuating the difference between Column A & Column B, et's call it Call it Column C
And than I created another column with Column C / by Colonne A but the result is not accurate...
Thanks for your help !
There is a chance you could be getting negative values which would definately cause some issues
try this:
Column C = Column A - Column B (like you already have)
New Percentage column = ABS(Column C) / Column A
then format this new column to be a percentage
If column B was larger than column A the number would be negative so ABS() gets the absolute value (ignores negatives) so that result in Column C will always be the difference between A and B
Can you post some sample data and what you expect as a result?
User | Count |
---|---|
65 | |
62 | |
60 | |
53 | |
28 |
User | Count |
---|---|
181 | |
82 | |
67 | |
48 | |
44 |