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.
Solved! Go to Solution.
Hi @Winz08,
Not really sure about your total setup but from your setup I'm assuming you have a expense table with lines for all the dates in the 4 years and a dates table that relates to the date in the expense table.
In this case the better way to do the calculation is not to add a column with all the years but a measure that calculates this.
CY = SUM(Expenses[Expense]) previous year = CALCULATE([CY];DATEADD(Dates_Table[Date];-1;YEAR)) previous 2 year = CALCULATE([CY];DATEADD(Dates_Table[Date];-2;YEAR)) previous 3 year = CALCULATE([CY];DATEADD(Dates_Table[Date];-3;YEAR))
Then add it to your visual
As you can see in the PBIX attach it get values even when you select the month filter.
Regards,
MFelix
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @Winz08,
Not really sure about your total setup but from your setup I'm assuming you have a expense table with lines for all the dates in the 4 years and a dates table that relates to the date in the expense table.
In this case the better way to do the calculation is not to add a column with all the years but a measure that calculates this.
CY = SUM(Expenses[Expense]) previous year = CALCULATE([CY];DATEADD(Dates_Table[Date];-1;YEAR)) previous 2 year = CALCULATE([CY];DATEADD(Dates_Table[Date];-2;YEAR)) previous 3 year = CALCULATE([CY];DATEADD(Dates_Table[Date];-3;YEAR))
Then add it to your visual
As you can see in the PBIX attach it get values even when you select the month filter.
Regards,
MFelix
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsCovering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
106 | |
94 | |
75 | |
62 | |
50 |
User | Count |
---|---|
147 | |
106 | |
104 | |
87 | |
61 |