The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi everyone, I will like to present you this case. I have a variable in one Column, for example, Sales. I need to create a new measure where what I need is the difference between the month of the present year and the month of the past year. If someone know how to do it, I will appreacite it.
Best Regards.
Solved! Go to Solution.
It's hard to give a clear example based on the little details you're providing, but you should be able to do this a few ways.
You could create a measure for "LastYearMonthlySales" that uses the SAMEPERIODLASTYEAR DAX function in its definition. Take a look at https://msdn.microsoft.com/en-us/library/ee634972.aspx for examples.
It's hard to give a clear example based on the little details you're providing, but you should be able to do this a few ways.
You could create a measure for "LastYearMonthlySales" that uses the SAMEPERIODLASTYEAR DAX function in its definition. Take a look at https://msdn.microsoft.com/en-us/library/ee634972.aspx for examples.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
114 | |
78 | |
77 | |
47 | |
38 |
User | Count |
---|---|
147 | |
115 | |
65 | |
64 | |
53 |