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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

dax

i want to show current month sales, last month sales, average of last 3 months, average of last 6 months, last year same month sales in a matrix. also i want to do it through a date range like 1 to 6 or 1 to 31. 
i have seperate date table and that is mapped with my main sales file.

1 ACCEPTED SOLUTION
VijayP
Super User
Super User

@Anonymous 

DateADD for last month

averagex and dateadd for other two options

sameperiod last year for last requirement

These dax will help you!

Just asking plain text will not help people to help you! you need to do some ground work before asking question in this forum




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


View solution in original post

1 REPLY 1
VijayP
Super User
Super User

@Anonymous 

DateADD for last month

averagex and dateadd for other two options

sameperiod last year for last requirement

These dax will help you!

Just asking plain text will not help people to help you! you need to do some ground work before asking question in this forum




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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