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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
pboric
Regular Visitor

how to calculate total of sales per year

I have a table with detailed sales over several years. I want to have a report showing the total sales for each year. I created a measure that calculates the total sales in the full table, but if I try to separate it for each year, I just get the total amount in all of the years. 

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your semantic model looks like, but I guess there might be no relationship between the fact table and the calendar table.

I tried to create a sample pbix file like below, and please chech the below picture and the attached pbix file.

 

Jihwan_Kim_1-1743563381409.png

 

Jihwan_Kim_0-1743563366303.png

 

 

 

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

View solution in original post

3 REPLIES 3
pboric
Regular Visitor

I did a further review and found myself with the same solution. There was a missing relation between the tables ¡

Thanks again 

pboric
Regular Visitor

Thanks, I was further reviewing and found myself the same solution, there was a missing relation between both tables

Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your semantic model looks like, but I guess there might be no relationship between the fact table and the calendar table.

I tried to create a sample pbix file like below, and please chech the below picture and the attached pbix file.

 

Jihwan_Kim_1-1743563381409.png

 

Jihwan_Kim_0-1743563366303.png

 

 

 

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.