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
Hello everyone, I'm trying to create a YTD view.
I have dates from 2021/1/1/ to 2022/31/1 I would like to confirma if I do use the SAMEPERIODLASTYEAR it would give me the sum or avg from the period of 2021 right? And if I use the TOTALYTD it would give the same info but considering only 2021/1/1 to 2022/31/1 right? And in the future when I do receive the data from the rest of the 2022 it would increment right?
Solved! Go to Solution.
@Anonymous Ideally YES! Just make sure there are no missing values in your date table and the TOTALYTD will consider date from 2022/1/1. To understand more about it you can refer below url:-
https://dax.guide/sameperiodlastyear/
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
@Anonymous Ideally YES! Just make sure there are no missing values in your date table and the TOTALYTD will consider date from 2022/1/1. To understand more about it you can refer below url:-
https://dax.guide/sameperiodlastyear/
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
Thank you Samarth! I have another question, so I created the measure using the totalytd, now I would like to rank this, using rankx or another function, could you please help?
the measure is
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 June 2024 Power BI update to learn about new features.
User | Count |
---|---|
138 | |
113 | |
110 | |
71 | |
58 |
User | Count |
---|---|
247 | |
132 | |
123 | |
96 | |
96 |