Disclosed is a compound having the formula (I) pharmaceutically acceptable salts or solvates thereof and pharmaceutical compositions containing the same, wherein the structural variables are as defined herein. The compounds, salts and solvates of this invention are useful as LXR agonists