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
Good day,
I want to get the value of the last year and its last month (e.g.: current month & year is September 2023, the value will be December 2022)
this is i did in my previous month, how can i do it to previous year & its last month (December 2022).
Thanks a lot,
Solved! Go to Solution.
Hi @mrdiesta ,
Please try:
Measure =
VAR __current_year = YEAR(MAX('Loan Listing'[Current Date]))
VAR __pre_year = __current_year - 1
VAR __last_month = 12
RETURN
CALCULATE([WECL RATE],YEAR('Loan Listing'[Current Date])=__pre_year && MONTH('Loan Listing'[Current Date])=__last_month)
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data in the Power BI Forum
Hi @mrdiesta ,
Please try:
Measure =
VAR __current_year = YEAR(MAX('Loan Listing'[Current Date]))
VAR __pre_year = __current_year - 1
VAR __last_month = 12
RETURN
CALCULATE([WECL RATE],YEAR('Loan Listing'[Current Date])=__pre_year && MONTH('Loan Listing'[Current Date])=__last_month)
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data in the Power BI Forum
Thank you so much! It works 😍
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.
User | Count |
---|---|
114 | |
80 | |
78 | |
47 | |
39 |
User | Count |
---|---|
148 | |
115 | |
65 | |
64 | |
53 |