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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
MandoPavs008
Frequent Visitor

Can anyone help me with 6 month rolling average in a calculated column instead of measure

CategoryDateCount
AA1-Apr-2230
AA1-May-2231
AA1-Jun-2230
AA1-Jul-2231
AA1-Aug-2231
AA1-Sep-2230
AA1-Oct-2231
AA1-Nov-2230
AA1-Dec-2231
AA1-Jan-2331
AA1-Feb-2328
AA1-Mar-2331
AA1-Apr-2330
AA1-May-2331
AA1-Jun-2330
AA1-Jul-2331
AA1-Aug-2331
AA1-Sep-2330
AA1-Oct-2331
AA1-Nov-2330
AA1-Dec-2313
AB1-Apr-223
AB1-May-226
AB1-Jun-225
AB1-Jul-2210
AB1-Aug-2211
AB1-Sep-228
AB1-Oct-223
AB1-Nov-225
AB1-Dec-2213
AB1-Jan-235
AB1-Feb-236
AB1-Mar-232
AB1-Apr-2311
AB1-May-234
AB1-Jun-2310
AB1-Jul-2314
AB1-Aug-234
AB1-Sep-237
AB1-Oct-236
AB1-Nov-231
AC1-Apr-2219
AC1-May-2221
AC1-Jun-2226
AC1-Jul-2219
AC1-Aug-2227
AC1-Sep-2226
AC1-Oct-2222
AC1-Nov-2224
AC1-Dec-2225
AC1-Jan-2317
AC1-Feb-2315
AC1-Mar-2327
AC1-Apr-2326
AC1-May-2330
AC1-Jun-2328
AC1-Jul-2324
AC1-Aug-2323
AC1-Sep-234
AC1-Oct-239
AC1-Nov-238
AC1-Dec-232
AM1-Apr-2211
AM1-May-2219
AM1-Jun-2218
AM1-Jul-2212
AM1-Aug-2217
AM1-Sep-2211
AM1-Oct-2216
AM1-Nov-2212
AM1-Dec-2219
AM1-Jan-239
AM1-Feb-2319
AM1-Mar-2317
AM1-Apr-2319
AM1-May-2317
AM1-Jun-2319
AM1-Jul-2322
AM1-Aug-2317
AM1-Sep-233
AM1-Oct-231
AM1-Nov-234

I tried to add 6 month rolling average as a calculated column to the above existing table but the same count column is being repeated as 6 month average. Can anyone help to get the calculated rolling average column in a table

1 ACCEPTED SOLUTION
ThxAlot
Super User
Super User

ThxAlot_0-1704252815289.png



Expertise = List.Accumulate(


        {Days as from Today},


        {Skills and Knowledge},


        (Current, Everyday) => Current & Day.LeanAndPractise(Everyday)


)



View solution in original post

4 REPLIES 4
ThxAlot
Super User
Super User

ThxAlot_0-1704252815289.png



Expertise = List.Accumulate(


        {Days as from Today},


        {Skills and Knowledge},


        (Current, Everyday) => Current & Day.LeanAndPractise(Everyday)


)



Thank you so much. Dax measure with Window worked perfectly for my report. 

Ashish_Mathur
Super User
Super User

Hi,

Why do you need it as a calculated column?  Why not a measure?


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
aj1973
Community Champion
Community Champion

Hi @MandoPavs008 

Rolling average is a Time Intelligence function using DAX, for that you need to create Date Table and you can use Quick measure to add the measure to your visual.

aj1973_0-1704247425322.png

 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.