Forum Discussion
Previous Month showing same value as Current Month
Please show the complete Data Model.
With what do you have the bidirectional relationship with your Month-Year Sales Table?
And talking of Month-Year Sales Table, what is the reasoning behind creating this table? I think you have created an additional table which was never required at first place, and hence made your Data Model complex.
As for the DAX, I would suggest using PREVIOUSMONTH to get the values for your last month,
PREVIOUSMONTH = CALCULATE(SUM('month-year sales'[monthly sales]), PREVIOUSMONTH('Calendar Table'[Date]))- remi1133 years agoNew Member
Hi, I will attach an image of my data model. I honestly am not sure why I created a separate table, I just knew I needed this data so created it in Excel and imported it, I am new to PowerBI and modeling, this is my first project. When I use PREVIOUSMONTH, the DAX accepts it, but returns (Blank) for every month in PREVIOUSMONTH. Here is my data model.