Forum Discussion

crln-blue's avatar
crln-blue
Post Patron
6 years ago
Solved

Calculated column without using the CALCULATE function

Hi, I'm still a newbie in PowerBI and I'm trying to get a data with the use of filters but no data was generated from the formula.

 

For context, I have a (summarized) table with Month, Year, Type (category column) and Total (measure). I want to add another column where the data is the total measure of the month-past year data.

For example:

 

My current formula is: 

MonthPastYear = CALCULATE(SUM('Table'[Current Total]),'Table'[Month]='Table'[Month],'Table'[Year] = 'Table'[Year] - 1, 'Table'[TYPE] = 'Table'[TYPE])
 
No data generated from the column. I don't think that CALCULATE SUM is the correct function to be used since the table is a summarized table that I made. FILTERS function isn't right. Any help is appreciated. Thank you!

6 Replies