Forum Discussion
Divide two columns using DAX
- 7 years ago
Anonymous so as per your screen shot, you need to change data type to decimal number and decimal point to 2 or 3, didn't seems like you did that?
yeah parry2k , it is a measure.
When I do count: Disputes divided by Transactions = DIVIDE(count('Disputes'[Disputes]), count('Disputes'[Transactions])) - nothing changes.
The two columns I'm using in the formula are Transaction and Disputes IDs that I am counting in that table already and then trying to use DAX to get the ratio.
Anonymous did you checked the data type
- Anonymous7 years agoNot applicable
- Anonymous7 years agoNot applicable
I did both parry2k , a calculated column and measure using same formulas:
Column formula: Column = DIVIDE(count(Disputes[Disputes]),count(Disputes[Transactions]))
Measure formula: Measure = DIVIDE(count(Disputes[Disputes]),count(Disputes[Transactions]))
Output:
- parry2k7 years agoSuper User
Anonymous so as per your screen shot, you need to change data type to decimal number and decimal point to 2 or 3, didn't seems like you did that?
- Anonymous7 years agoNot applicable
I changed it but it doesn't affect anything parry2k