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
spsp
Frequent Visitor

Display % of Monthly Sales over Annual Total Sales

Hi all,

 

I have 2 linked tables which are Date(month column) and Transaction(sales_amount column) tables. 

How can I achieve to calculate and display Sales and Total Sales in same table as Sales column will be filtered by Month while Total Sales would be Sum of all months Sales in that year. And later, I can calculate the % of Sales amount of the month over the year.

 Month Sales Total Sales % of Sales
2022 Jan20,000 85,000 23.53%
 Feb30,000 85,000 35.29%
 Mar20,000 85,000 23.53%
 Apr15,000 85,000 17.65%
    
 Total85,000 100%

 

 

 

1 ACCEPTED SOLUTION
Ahmedx
Super User
Super User

You can sum up sales for all months like this:

Sum of all months Sales = CALCULATE(SUM('Table'[Sales]),REMOVEFILTERS('Calendar'),VALUES('Calendar'[year]))

View solution in original post

2 REPLIES 2
Ahmedx
Super User
Super User

You can sum up sales for all months like this:

Sum of all months Sales = CALCULATE(SUM('Table'[Sales]),REMOVEFILTERS('Calendar'),VALUES('Calendar'[year]))
spsp
Frequent Visitor

Short and simple, thanks for your solution!

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.