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

Calculated Measure in a Card not matching sum of rows in table (using sameperiodlastyear)

PBIX and test data file attached.

 

I am using the sameperiodlastyear function to calculate revenue/cost/qty/avg price by part number across YTD time period.  I then am calculating the difference between this year and last years avg price * this years qty as 'total price difference'.  All of my data looks as expected when in the table, but my totals and if I try to just display the sum of the 'total price difference' looks wildly inaccurate.  I understand the card is probably incorrect because without the table structure I am no longer calculating the average prices and differences at the part number level, which is what I need to do.  Any help on how to solve would be greatly appreciated.

 

nmuser_1-1602788816287.png

 

2 REPLIES 2
v-jayw-msft
Community Support
Community Support

Hi @Anonymous ,

 

You could upload the file to onedrive and share the link here.

Or you could just show some sample data and the formulas you used to us.

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
Anonymous
Not applicable

What is the secret to uploading my PBIX and excel data file?

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.