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
shaykoooo
Helper I
Helper I

Time Intelligence

Hello,


In my model I have a calendar table- DimDate[Date] and a fact sales table, updated until 8/2/18 and being updated on a daily basis. I need to create these three measures.

1. Compare current month sales to the last year's parallel month, but, only for number of days that passed by. (ie to show sales for 1/2/18 throgh 8/2/2018 against 1/2/17 throgh 8/2/2017.
Could DATESADD do the trick?

2. Same as clause number 1 only that for 2017, I would like to show sales for ALL of the days in February 2007.
I tried SAMEPERIODLASTYEAR AND PARALLELPERIOD but it returned all of the dates in february 2017.


3. Create a dynamic forecast for sales for the current month, meaning that based on averaged daily sales since 1/2/18 until 8/2/18, I can multiply the this daily average by the number of working days in February 2018 and then I will get the linear projected sales for the current month. Next month, same thing for March, as this should be dyanmic.
I need to create a running total and divide by the number of the days that passed since the beginning of current month but don't know how to do that...

THANK YOU ALL!

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

Hi @shaykoooo,

 

I think it will be help if you share more detail contents and expected result.

 

#1, I don't think DATEADD fucntion can used to compare with previous date, you can try to use PREVIOUSYEAR/SAMEPERIODLASTYEAR fucntion to instead.

 

#2, Please provide more detail informations about this, such as measure formula and result.

 

#3, Current forecast feature only available on line chart with regular records.

Using the Analytics pane in Power BI Desktop

 

Reference link:

Time Intelligence Functions in DAX

Time Intelligence in Power BI Desktop

 

Regards,

Xiaoxin Sheng

 

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

1 REPLY 1
v-shex-msft
Community Support
Community Support

Hi @shaykoooo,

 

I think it will be help if you share more detail contents and expected result.

 

#1, I don't think DATEADD fucntion can used to compare with previous date, you can try to use PREVIOUSYEAR/SAMEPERIODLASTYEAR fucntion to instead.

 

#2, Please provide more detail informations about this, such as measure formula and result.

 

#3, Current forecast feature only available on line chart with regular records.

Using the Analytics pane in Power BI Desktop

 

Reference link:

Time Intelligence Functions in DAX

Time Intelligence in Power BI Desktop

 

Regards,

Xiaoxin Sheng

 

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

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.