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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.