Hi @FernandoCar ,
Welcome to Microsoft Q&A!
From the T-SQL, you were calculate average values for one column. However, in SSAS cube, you were created a calculated member. A Calculated Member is a custom MDX expression that defines a member in any hierarchy in the cube. When you create a calculated member, it’s better to create two physical measures [Sum] and [Count] and then create a calculated measure to calculate average. If you would like to calculate average value for one coulumn, please try to create a measure. For more information, please refer to below links:
Average aggregation in measures – SSAS Cube
this thread
Create Measures and Measure Groups in Multidimensional Models
Best regards,
Carrin
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.