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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. 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

Click here to schedule a short Teams meeting to discuss your question.

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

Click here to schedule a short Teams meeting to discuss your question.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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