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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

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
Microsoft Employee
Microsoft 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
Microsoft Employee
Microsoft 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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Solution Authors
Top Kudoed Authors