Forum Discussion
Anonymous
6 years agoNot applicable
Previousmonth calculation showing blank
Hi,
i am using the below for previousmonth calculation, but result is always blank.
Syntax:
PreviousMonth = CALCULATE(SUM('Monthly Speed - All Operators b'[Download Speed Mbps]),PREVIOUSMONTH('Monthly Speed - All Operators b'[Aggregate Date]))
sample for the dataset in the below link
Anonymous
PreviousMonth = CALCULATE ( SUM ( 'Monthly Speed - All Operators b'[Download Speed Mbps] ), PREVIOUSMONTH ( 'Monthly Speed - All Operators b'[Aggregate Date].[Date] ) )
Did I answer your question? Mark my post as a solution!
Appreciate with a kudos 🙂
5 Replies
- nandukrishnavs
Community Champion
Anonymous
This is because of the date hierarchy.
PreviousMonth = CALCULATE ( SUM ( 'Monthly Speed - All Operators b'[Download Speed Mbps] ), PREVIOUSMONTH ( 'Monthly Speed - All Operators b'[Aggregate Date].[Date] ) )
Did I answer your question? Mark my post as a solution!
Appreciate with a kudos 🙂- AnonymousNot applicable
thanks you nandu, but it worked now, but i noticed that aggregate date format inside matrix changed.= and not showing year/month any more.
is there a way to handle this and keep the format as it is?
- nandukrishnavs
Community Champion
Anonymous - Yes I have modified the above reply. Please check that.