Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
snifer
Post Patron
Post Patron

on going untill today month

hi im trying making a calculation of number of ship from prev year

 

prevnumbship = CALCULATE ((ViewLookupShipments[number shipment]), SAMEPERIODLASTYEAR( ViewProjectProfit[dtAccounting] ) )
 
all good, but if I select all current year 2019, the result is blank I think because the year 2019 is still ongoing
how I can calculate until today (month) ?
1 ACCEPTED SOLUTION
vanessafvg
Super User
Super User

@snifer  i think you need a continuous date table to use same period last year, do you have a date table?

 

https://docs.microsoft.com/en-us/dax/sameperiodlastyear-function-dax

https://www.youtube.com/watch?v=eJ03-7MssuY





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




View solution in original post

2 REPLIES 2
v-cherch-msft
Employee
Employee

Hi @snifer 

Could you tell me if your problem has been solved? If it is,kindly mark the helpful answer as a solution and welcome to share your own solution. More people will benefit from here. If not, please share more details for us so that we could help further on it.

Regards,

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
vanessafvg
Super User
Super User

@snifer  i think you need a continuous date table to use same period last year, do you have a date table?

 

https://docs.microsoft.com/en-us/dax/sameperiodlastyear-function-dax

https://www.youtube.com/watch?v=eJ03-7MssuY





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.