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
jp25
Frequent Visitor

DAX Question Averag

Hello All, 

I am working on the following table. 

jp25_0-1612768190939.png

 

in this table, every month has more than 3 sources of income. namely: salary, Interest & Rental Income. 

 

I am struggling to find a way to calculate the average monthly income till date, and want to continue updating as more data in future gets updated where a month may have a different number of income sources. 

 

I Really appreciate any help in this regards.

 

 

Thanks, 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@jp25 , Your date seems like a month, but in case it, not the month, have a month year and try a measure like

 

AvergaeX(Values(Table[Month Year]),calculate(Sum(Table[Value])))

 

 

new columns

Month Year = FORMAT([Date],"mmm yy")
Month Year sort = FORMAT([Date],"yyyymm")

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@jp25 , Your date seems like a month, but in case it, not the month, have a month year and try a measure like

 

AvergaeX(Values(Table[Month Year]),calculate(Sum(Table[Value])))

 

 

new columns

Month Year = FORMAT([Date],"mmm yy")
Month Year sort = FORMAT([Date],"yyyymm")

@amitchandak Thank you.  That helped. 

Appreciate your response

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.

Top Solution Authors