Forum Discussion
pro_x
Helper I
6 years agoDax measure
Hi
I have one column, only one column that has rejected and successful. Rejected is represented by 0 and successful is represented by 1. How can I calculate the percentage difference for rejected and successful separately?
13 Replies
- amitchandak
Super User
pro_x , two measures likes
Mark all them as % column
successful =divide(calculate(countrows(Table),Table[col]=1),countrows(Table))
Rejected =divide(calculate(countrows(Table),Table[col]=0),countrows(Table))percentage difference = [successful] -[Rejected]
- AnonymousNot applicable
pro_x Can you share some sample data and expected out? That way people here can help you quickly.
Thanks
- pro_x
Helper I
This is the data I have, rejected is represented by 0 and successful is represented by 1.