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 mornig,
I need help for PBI Dax.
I have a table with two colums: the first with the date (from 2017/12 to 2018/09) and the second with amount of accounts opened.
I would like to know the sum of account in the same period of 2017 and 2018. Is it possible? I try with DAX SAMEPERIODLASTYEAR but it don't work.
Can You Help me?
thx
filippo
Solved! Go to Solution.
Hi @filippoalicicco,
I have a demo in hand. Please refer to the attachment and snapshot below.
Best Regards,
Dale
Hi Filippo,
1. The data is from 2017/12 to 2018/09. What could the same period be?
2. What's the granularity? Month or Day?
3. If you try the function SAMEPERIODLASTYEAR, you need a Date table that has continuous dates.
4. Can you share a sample?
Best Regards,
Dale
1) the same period that i want to analize is : from 2017/01 to 2017/09 to compare from 2018/01 to 2018/09
2) Granularity in Month
I attach a photo with ma table and i write you an example:
Colum "aperture conti correnti" --> sum form from 2017/01 to 2017/09 is 103.448 and sum from 2018/01 to 2018/09 is 86.152 --> percentage difference is -16%.
I need a dax that in next month calculates from 2017/01 to 2017/10 and the same period for 2018.
Hi @filippoalicicco,
I have a demo in hand. Please refer to the attachment and snapshot below.
Best Regards,
Dale
Now it works!!
thank you so much
filippo
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 July 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
109 | |
68 | |
46 | |
42 |
User | Count |
---|---|
188 | |
86 | |
77 | |
74 | |
60 |