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.
Hi
I have this formula but it is not calculating the amounts correctly - please assist- it is for previous year previous month
Solved! Go to Solution.
Hi @NadiaLR1234
For previous year please try the following.
Create a base measure
TotalCom = SUM(vw_TTV[Commission])
Create a YTD
ComYTD = TOTALYTD([TotalCom], DIMDate[DateFull])
For Previous Year
ComPY = CALCULATE([ComYTD], DATEADD(DimDate[DateFull], -1, YEAR))
For Previous Month change the last two measures to TOTALMTD in the first of the two and the Interval YEAR to MONTH in the 2nd measure of the two
Thanks
Joe
If this post helps, then please Accept it as the solution
Hi @NadiaLR1234
For previous year please try the following.
Create a base measure
TotalCom = SUM(vw_TTV[Commission])
Create a YTD
ComYTD = TOTALYTD([TotalCom], DIMDate[DateFull])
For Previous Year
ComPY = CALCULATE([ComYTD], DATEADD(DimDate[DateFull], -1, YEAR))
For Previous Month change the last two measures to TOTALMTD in the first of the two and the Interval YEAR to MONTH in the 2nd measure of the two
Thanks
Joe
If this post helps, then please Accept it as the solution
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 |
---|---|
106 | |
98 | |
75 | |
63 | |
62 |
User | Count |
---|---|
139 | |
104 | |
104 | |
80 | |
66 |