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.
Hey Guys,
i need your help, please.
I want to measure the Total amount of the last year (YTY-1).
But i have one restiiction: I am using a measure of the YTD. If I filter the month, I get the YTY-1 with filtered values too. But it should measure the total value of the last year
Best regards from Germany 🙂
my current measure:
Solved! Go to Solution.
Hi!
Do you have a Date table (Set and use date tables in Power BI Desktop - Power BI | Microsoft Learn)?
If so, PREVIOUSYEAR() should work, in the form of:
AA_Betrag_YTY-1 :=
CALCULATE(
[korrigierter Betrag], //assuming this is the measure you want to calculate
PREVIOUSYEAR(Dates[Date]) //date column from your date table
)
Hi!
Do you have a Date table (Set and use date tables in Power BI Desktop - Power BI | Microsoft Learn)?
If so, PREVIOUSYEAR() should work, in the form of:
AA_Betrag_YTY-1 :=
CALCULATE(
[korrigierter Betrag], //assuming this is the measure you want to calculate
PREVIOUSYEAR(Dates[Date]) //date column from your date table
)
Hi Tomas
yeah, it works well. I know one more function now too. Thanks for that!
Covering 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 |
---|---|
107 | |
98 | |
78 | |
64 | |
58 |
User | Count |
---|---|
148 | |
113 | |
97 | |
84 | |
67 |