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.
Hello,
I'm trying to do something I thought would be simple... calculate the percentage growth in payment volume from year to year.
However, it only seems to work for the last year. It's blank for earlier years, as you can see in the screenshot here:
You can see what the #Payments1YearBack syntax is at the top of the screenshot. I've also tried it with DATEADD and with SAMEPERIODLASTYEAR and got identical results.
The #PaymentsTrimmed measure to which it refers is simply
Solved! Go to Solution.
Ah - I've just been playing around with the file again, and it now works perfectly! I've no idea what has changed since the last time I logged in - nobody has changed any of the measures. How weird.
Hi @s-turn,
Could you provide .pbix file after removing sensitive data?
Not sure if the problem comes from the calendar table.
Best Regards,
Link
I can't easily do that, as the data source is a Power BI dataset that I use for lots of reports. However, I will try and recreate it and see what happens...
Ah - I've just been playing around with the file again, and it now works perfectly! I've no idea what has changed since the last time I logged in - nobody has changed any of the measures. How weird.
I hate when stuff like that happens but glad it is working for you and thank you for posting that your problem was solved.
Two questions (just a stab in the dark).
1. Is you CalYear column in the visual from your 'Calendar' table?
2. Does your 'Calendar' table contain full years? Meaning it goes from Jan-1 of the first year to Dec-31 of the last year. I have seen odd behaviour if this is not the case.
Yes, CalYear is from my Calendar table, and yes, it contains full years (see screenshot below), though it stops in March 2023 so I suppose the last year is not a full year.
Just to give more info on the Calendar table, this is the syntax - I copied it from an article online and added just one calculated column, so I must confess I'm not entirly sure how it does what it does! I expect it ends on 31/03/2023 because 31/03 is the end of our financial year.
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 |
---|---|
113 | |
97 | |
85 | |
70 | |
61 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |