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
Parag_Gawate
Helper III
Helper III

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

@Parag_Gawate 

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

@Parag_Gawate 

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
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.