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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Prior Month Vales for a existing measure which aggregates from daily to monthly.

I have a table with daily observations.  I have an existing measure (Total_Visits_Sum) that provides the data on a monthly or quarterly basis based on the date I use for the axis.  If I use a custom column in the calendar for MMM-YY the data automatically gets aggregated.

Total_Visits_Sum = SUMX (
SUMMARIZE (
'Data',
'Data'[Date]),
CALCULATE (
SUM ( 'Data'[Visits])))

My question is how do I get the prior month's value to compare, so I could do a month-over-month change?  I have seen the examples that do this but only when the underlying frequency of the data is monthly, not aggregated like I am doing.  

1 REPLY 1
daxer-almighty
Solution Sage
Solution Sage

@Anonymous 

 

Marco Russo on time-intelligence in Power BI: https://youtu.be/FxiAYGbCfAQ

 

Please watch this in order to not make mistakes that others do by thinking they can get away with not learning the basics and the theory behind DAX.

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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