The present invention relates to compounds of formula (I) wherein the substituents are as defined in the claims, including pharmaceutical compositions thereof and for their use in the treatment and/or prevention and/or amelioration of one or more symptoms of disease or disorders related to the activity of FXR. The invention is also directed to intermediates and to a method of preparation of compounds of formula (I).