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
Anonymous
Not applicable

Previous Year Measures not working.

Hi!

 

I have a problem. From one moment to other, measures that were working properly are not working anymore, and I can't figure out why.

The measures are of type DATEADD. Measures that show me sales of previous year, are not displaying values anymore. I have VentasUSD Measure (Period Sales) and VentasUSDAA (Previous Period Sales), witch is calculated using DATEADD function.

 

Sin título.png

 

The Measure VentasUSDAA =
CALCULATE(
 CALCULATE(
  SUM(
   'Ventas'[USD]
  ) / 1000;
  DATEADD(
   Fecha[Fecha];-1;YEAR
  )
 );
 USERELATIONSHIP(
  'Ventas'[IdFecha];
  'Fecha'[IdFecha]
 )
)

 

Sin título 2.png

 

The measures are in "Ventas" table that is related to "Fecha" table (Dates). In the report I have a slicer to select the desired period. And liked I say, the sales of selected period are working just fine, but the column were the "VentasUSDAA" (Previous Year Sales) is, is not displaying any values. The formula has not changed. It was working just fine hours ago and now it's not working.

 

Thanks in advance.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

It has been solved. It was a relationship problem.

 

Thanks anyway.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

It has been solved. It was a relationship problem.

 

Thanks anyway.

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.