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

Rolling average on calculated table

Hi,

 

I am new to PowerBI. I am trying to create a rolling average over grouped data. I have created a calculated table:

 
'Helper' = SUMMARIZE(
'PBIs-Pay_AK_Test',
'PBIs-Pay_AK_Test'[Iteration Path],'PBIs-Pay_AK_Test'[Iteration End Date],
"Total Story Points", CALCULATE(SUM('PBIs-Pay_AK_Test'[Story Points]), 'PBIs-Pay_AK_Test'[Is Current] = TRUE()))
which results in the following table:
 
ex.png
 
I am trying to create a rolling average column on that table, unfortunately the table name is not recognized:
 
ex1.png
 
Would anyone know a solution to this problem? 
1 ACCEPTED SOLUTION

Hi @Farquaad,

 

I hope you didn't post anything confidential here. Please pay attention to your privacy and data security. 

The root cause is the table name contains special characters. We need to use the escape sign or change the table name. Please refer to the formula and snapshot below.

Moving_Average_3_Months = 
CALCULATE (
    AVERAGEX ('''Helper''', '''Helper'''[Total Story Points]  ),
    DATESINPERIOD ('''Helper'''[Iteration End Date],
        LASTDATE ( '''Helper'''[Iteration End Date] ),
        -3,
        MONTH
    )
)

Rolling-average-on-calculated-table

 

Best Regards,
Dale

Community Support Team _ Dale
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

4 REPLIES 4
AlB
Super User
Super User

Hi @Farquaad

 

Can you share the pbix?

Farquaad
Frequent Visitor

 

 

Hi @Farquaad,

 

I hope you didn't post anything confidential here. Please pay attention to your privacy and data security. 

The root cause is the table name contains special characters. We need to use the escape sign or change the table name. Please refer to the formula and snapshot below.

Moving_Average_3_Months = 
CALCULATE (
    AVERAGEX ('''Helper''', '''Helper'''[Total Story Points]  ),
    DATESINPERIOD ('''Helper'''[Iteration End Date],
        LASTDATE ( '''Helper'''[Iteration End Date] ),
        -3,
        MONTH
    )
)

Rolling-average-on-calculated-table

 

Best Regards,
Dale

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

Many thanks Dale, it works!

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.