Forum Discussion
mithiladas02
4 years agoHelper I
How to Show Ratio?
hi, i want to write dax for ratio. for example-Column A=27 and and column B=18, 27/18 , so i want to show the value 3:2 Thanks in Advance.
- 4 years ago
Hi mithiladas02 ,
Create a column with below code:-
Column = VAR _value = GCD ( [A], [B] ) RETURN DIVIDE ( [A], _value ) & ":" & DIVIDE ( [B], _value )output:-
Thanks,
Samarth
Samarth_18
4 years agoCommunity Champion
Hi mithiladas02 ,
Create a column with below code:-
Column =
VAR _value =
GCD ( [A], [B] )
RETURN
DIVIDE ( [A], _value ) & ":"
& DIVIDE ( [B], _value )
output:-
Thanks,
Samarth