Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
hi
i want to get the value of previous year and next year in front of my date how to get this using dax.
please help.
Hi @ArpanJain ,
Is your problem solved? If so, would you mind accept the helpful replies as solutions? Then we are able to close the thread. More people who have the same requirment will find the solution quickly and benefit here, thank you!
Best Regards,
Community Support Team _ kalyj
Hi @ArpanJain ,
According to your description, you just want to get that which year is the previous year and next. If so, create calculated columns like this:
Previous year =
YEAR ( [Date] ) - 1
Next year =
YEAR ( [Date] ) + 1
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
To your visual, drag Year and Quarter from the Calendar Table. Write these measures.
Sales = sum(Data[Amount])
Sales in SPLY = calculate([sales],sameperiodlastyear(Calendar[Date]))
Hope this helps.
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 |
---|---|
93 | |
87 | |
80 | |
69 | |
68 |
User | Count |
---|---|
226 | |
129 | |
119 | |
83 | |
77 |