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

Total Sales for same month last year

I Have Three Table 1st is Date Table,

2nd is 2016_2017 Table datewise start with 01-04-2016 to 31-03-2017. & 

3rd is 2017_2018 Table datewise start with 01-04-2017 to 30-11-2017.

 

Now i want to create a report :-

1. DateWise Comparison Same Date in Both Year

2. Monthwise Comparison Same Month In Both Year

3. Upto November Comparison SamePeriod in Both Year

 

Please Provide measure calculation

2 REPLIES 2
v-jiascu-msft
Employee
Employee

Hi @PKGARG,

 

Could you please mark the proper answer as solution or share the solution if it's convenient for you? That will be a big help to the others.

 

Best Regards!
Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-jiascu-msft
Employee
Employee

Hi @PKGARG,

 

You can try it in this file.

How to display the period of question 3 in a visual? Years?

SamePeriodLastyear =
CALCULATE (
    SUM ( '2016_2017'[Quantity] ),
    SAMEPERIODLASTYEAR ( 'Calendar'[Date] )
)

Total_Sales_for_same_month_last_year

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the 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.