Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Hernán
Frequent Visitor

Average all values in a column and show the las period with data DAX or Power Query

Hello everyone,

 

I hope you are doing great!

I need help in DAX or Power Query.

I need to calculate:

  • The average in the column C (all values in column C,  all months).
  • The average in each value in column C by month.
  • The score the last month with data.

I have a matrix with a measure that have a score , thus:

 

Image1. Matrix

matrix.PNG

Image2. The data used in the matrix

columns and measure in the matrix.PNG

 

Image3. Measure "Score S"

Measure used in the matrix.PNG

 

Image4. The relationships.

relationships.PNG

 

Image5. I expected that two tables.

I expected:

I expected.PNG

 

Attached the .pbix

 

Thank you so much for your help!

 

Regards,

Hernán Montoya

2 REPLIES 2
v-binbinyu-msft
Community Support
Community Support

Hi @Hernán ,

I'm a little confused about below two needs, Could you please explain them further?

vbinbinyumsft_0-1669365738102.png

Thanks for your efforts & time in advance.

 

Best regards,
Community Support Team_ Binbin Yu

Hello @v-binbinyu-msft ,

 

I'm sorry for reply so late.

 

Image1. I need to have a calculate column o measure with the Row Totals  and Column Total.

matrix.PNG

In a nutshell, I need  to create two matrix:

  • First matrix with Row Total how in the image1 (above) and
  • Second matrix with Column Totals (image1).

In the final, the twice matrix will see how the image5(image here below)

Image5. I need to use the new calculate columns or measure with the averages.

I expected.PNG

Thank you so much for your help!

 

Best Regards,

Hernán Montoya

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.