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
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
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.