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
RogerSteinberg
Post Patron
Post Patron

Daily Average for the Month with Weighted Average

Hi,

 

I am trying to get the daily average of a weighted average value per segment for each month in the year.

2020-03-06 17_16_22-Book2 - Excel.png

 

My data looks like this:

 
month segmentdaily avg weighted value
JAN adaily average for that month based on the weighted_value col. which should average out the values 4.9, 23.3 , etc.
JANbdaily average for that month based on the weighted_value col. which should average out the values 43,61, etc.

I would like to achieve the following:

The daily average for each month per segment for the aggregated weighted values.

 

How can i achieve this either using a measure or calculated column ?

1 ACCEPTED SOLUTION
v-lili6-msft
Community Support
Community Support

hi  @RogerSteinberg 

For your case, you could use "ALLXXXX" Function to create a measure like below:

https://www.sqlbi.com/articles/managing-all-functions-in-dax-all-allselected-allnoblankrow-allexcept...

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-lili6-msft
Community Support
Community Support

hi  @RogerSteinberg 

For your case, you could use "ALLXXXX" Function to create a measure like below:

https://www.sqlbi.com/articles/managing-all-functions-in-dax-all-allselected-allnoblankrow-allexcept...

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.