Forum Discussion
cstarr465
9 years agoFrequent Visitor
Dynamic column based on slicer selection (calculating conversion rate)
I have a table called Inbound Leads. This has all our leads, their contact, date of origination, source, etc. I also have a TRUE/FALSE column in there for if they have closed or not. I need to create...
Vvelarde
Community Champion
9 years ago
Hi, you can use a measure:
Conversion =
DIVIDE (
COUNTROWS ( FILTER ( Table1; Table1[Closed] = "Yes" ) ),
COUNTROWS ( Table1 )
)And in your visual put this:
Let me know if need more help
Regards
Victor
Lima - Peru
- cstarr4659 years agoFrequent Visitor
Thanks for the response, I think I'm nearly there!
It returned an error and won't load visuals with the measure: "DAX comparison operations do not support comparing values of type True/False with values of type Text. Consider using the VALUE or FORMAT function to convert one of the values."
- Ashish_Mathur9 years ago
Super User
Hi,
Replace the "Yes" with TRUE. Does that work?
- cstarr4659 years agoFrequent VisitorSame result. I'm using an IF statement in excel to produce the TRUE/FALSE, do I need to use something else, or a support column?