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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
JaviGoldstein
New Member

creating a monthly average column

I am trying to create a monthly average column for an exchange rate table.   Here is a screenshot of the the table structure:

 

JaviGoldstein_0-1699045136724.png

What would be the best way to calculate a monthly average rate per combo in the table?   Thx!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @JaviGoldstein ,

Please try to create a new column with below dax formula:

Column =
VAR cur_combo = [Combo]
VAR cur_date = [Date]
VAR cur_year =
    YEAR ( cur_date )
VAR cur_month =
    MONTH ( cur_date )
VAR tmp =
    FILTER (
        'Table',
        [Combo] = cur_combo
            && YEAR ( [Date] ) = cur_year
            && MONTH ( [Date] ) = cur_month
    )
RETURN
    AVERAGEX ( tmp, [Rate] )

vbinbinyumsft_0-1699240098296.png

Please refer the attached .pbix file.

 

Best regards,
Community Support Team_Binbin Yu
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
Anonymous
Not applicable

Hi @JaviGoldstein ,

Please try to create a new column with below dax formula:

Column =
VAR cur_combo = [Combo]
VAR cur_date = [Date]
VAR cur_year =
    YEAR ( cur_date )
VAR cur_month =
    MONTH ( cur_date )
VAR tmp =
    FILTER (
        'Table',
        [Combo] = cur_combo
            && YEAR ( [Date] ) = cur_year
            && MONTH ( [Date] ) = cur_month
    )
RETURN
    AVERAGEX ( tmp, [Rate] )

vbinbinyumsft_0-1699240098296.png

Please refer the attached .pbix file.

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

FreemanZ
Super User
Super User

hi @JaviGoldstein ,

try to plot a table visual with Month Column from your calendar table and a measure like:

measure = AVERAGE(data[Rate])

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.