Forum Discussion
DAX formula for Percentage between two columns
To create a column that shows the percentage of New Sales compared to the salesperson's Quota in DAX, you can use the following formula:
New Sales % = DIVIDE(New Sales, Quota)
This formula will divide the New Sales column by the Quota column and return the result as a decimal value. To convert the decimal value to a percentage, you can multiply the result by 100 and add the % symbol.
Here is an example of how the formula could be used in DAX:
New Sales % = FORMAT(New Sales / Quota, "0.00%")
This formula will divide the New Sales column by the Quota column, format the result as a percentage with two decimal places, and add the % symbol.
Please note that the exact syntax and names of the columns and functions may vary depending on your specific data set and Power BI configuration.