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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Creating a sameperiodlastyear measure that retains Parent and product line data.

I am working on a report to easily show a specific company's sales by product line, comparing this year's sales to last year's using sameperiodlastyear. The measure currently works with Invoice Date and Sales but when the parent or product is added I get an error. It seems like the connection between last year's measure and the parent or product is lost and I am having trouble finding the solutions. 

 

I am working with 5 columns and measures.

  • 'ChartMeasures'[Sales ($)]
  • 'ChartMeasures'[LY Sales ($)]
  • 'CustomerParent'[ParentName]
  • 'ReportingCalendar'[InvoiceDate]
  • 'refProductLine'[ProductLine"

Last Year sales Measure: 

LY Sales ($) =
CALCULATE(
    [Sales ($)],
    SAMEPERIODLASTYEAR('ReportingCalendar'[InvoiceDate]))
0 REPLIES 0

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.