Forum Discussion
Month to Month Difference
- 2 years ago
This is because Month column data type is not a date.
You can try to change the Month column data type to Date in transform data option.
Right click on the table particular table in Data section > go to edit query
Select the month column
Go to Transform tab in the top menu.
change Data Type to “Date"Once change it, Click on File > Close and Apply
After that try to create the measure.
You can try below measure to calculate the diffrence between months.
Overall Score Diffrence =
VAR _CurrentMonthScore = SUM('Table'[Score])
VAR _PrevMonthScore =
CALCULATE(SUM('Table'[Score]),PREVIOUSMONTH('Table'[Month]))
RETURN
_CurrentMonthScore - _PrevMonthScore
- henryhuynhpham2 years agoNew Member
It gave me this error.
- Nilupul2 years agoFrequent Visitor
This is because Month column data type is not a date.
You can try to change the Month column data type to Date in transform data option.
Right click on the table particular table in Data section > go to edit query
Select the month column
Go to Transform tab in the top menu.
change Data Type to “Date"Once change it, Click on File > Close and Apply
After that try to create the measure.- henryhuynhpham2 years agoNew Member
Thank you for the formula!