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
larssae
New Member

Power bi report builder chart sum several periods

Hello! 

 

I'm currently tryng out the Power Bi Report builder where I'm stuck. 

On the right y axis I have the sum of the revenue, basically =Sum(Fields!FIeld1.Value). Category is time. 

 

However, on the left I want to to have sum of the twelve last months but I don't know how to write the formula, does anyone have any suggestion if it is possible? 

 

As an exemaple, time C is the revenue for Month X in the right Y axis (that I have) and left is the cumulative revenue of the 12 past months. I have monthly data. 

 

larssae_0-1644835635349.png

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@larssae , In DAx we can create measure like this

Rolling 12 = CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD('Date'[Date ],MAX('Date'[Date ]),-12,MONTH))

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@larssae , In DAx we can create measure like this

Rolling 12 = CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD('Date'[Date ],MAX('Date'[Date ]),-12,MONTH))

@amitchandak Thanks for reaching out and sorry for me being unclear. I don't think it is possible to use DAX measures in Power BI Report Builder? 

 

Are you aware if there is another support forum for questions related to Power BI Report Builder? 

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.