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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Anonymous
Not applicable

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 @Anonymous ,

 

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.