The present invention relates to compounds of formula (I) wherein thesubstituents are as defined in the claims,in-cluding pharmaceutical compositions thereof and for their use in thetreatment and/or prevention and/or amelioration of one ormore symptoms of disease or disorders related to the activity of FXR. Theinvention is also directed to intermediates and to amethod of preparation of compounds of formula (I).