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.
Hello, I am attempting to create a calculated column to indicate the average of Rate by Month. I believe it should look something similar to the following, but I know the expression in the filter function is incorrect.
=Average(Filter('datamodel',[Month] = [Month]),[Rate])
What I am trying to do with this expression in the filter function is indicate that we only want the average for each distinct month. The bolded portion of the function is where I believe I am going wrong here and could use some assistance.
FYI - I have seen examples of this function with the month indicated, but I will not be able to do so with my example. The formula just needs to know that it takes the average of Rate in the 'datamodel' for a distinct month.
Thank you!
Solved! Go to Solution.
Hi @jamesrr25
Please try this
Column = CALCULATE( AVERAGE([Rate]) , Filter('datamodel','datamodel'[Month] = EARLIER('datamodel'[Month]) ) )
Hi @jamesrr25
Please try this
Column = CALCULATE( AVERAGE([Rate]) , Filter('datamodel','datamodel'[Month] = EARLIER('datamodel'[Month]) ) )
Thank you @Phil_Seamark ! This worked perfectly.
I have never used the Earlier function and am reading up on it some more. Very interesting! Have a fantastic day.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
99 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
87 | |
64 |