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
WorkHard
Helper V
Helper V

Calculate percentage of Revenue by Month and different type of Accounts

I have a table displaying amounts in a matrix with Months as Columns and different accounts as Rows.

 

I am trying to calculate the percentage of revenue per account per month using a matrix visual.

 

The below formula works and displaying the TOTAL  percentage of revenue per account correctly but the breakdown by month is calculating based on the TOTAL revenue instead of calculating dynamically per month.

 

What am I missing?

 

Total Value = SUM ( Data[Value] )

Total Revenue = CALCULATE( [Total Value], FILTER ( ALLSELECTED( Chart ), Chart[Level 1] = "Revenue" ) )

% of Revenue = DIVIDE( [Total Value], [Total Revenue], 0 )

 

 

Here's some sample data:

 

DateGLUSDAccount
1/1/2020110Sales
2/1/2020220Sales
3/1/2020330Sales
1/1/20204140Revenue
2/1/202042200Revenue
3/1/20204360Revenue

 

WorkHard_0-1597951340158.png

1 ACCEPTED SOLUTION
harshnathani
Community Champion
Community Champion

Hello @WorkHard ,

Create 3 measures

Sales = SUM('Table'[USD])

REV - CALCULATE([Sales], 'Table'[Account] - "Revenue")
Percentage: DIVIDE([Sales],[REV])
1.jpg
Best regards
Harsh Nathani
Did I answer your question? Mark my position as a solution! Appreciate with a Kudos!! (Click the Thumbs button above)

View solution in original post

3 REPLIES 3
harshnathani
Community Champion
Community Champion

Hello @WorkHard ,

Create 3 measures

Sales = SUM('Table'[USD])

REV - CALCULATE([Sales], 'Table'[Account] - "Revenue")
Percentage: DIVIDE([Sales],[REV])
1.jpg
Best regards
Harsh Nathani
Did I answer your question? Mark my position as a solution! Appreciate with a Kudos!! (Click the Thumbs button above)
harshnathani
Community Champion
Community Champion

Hi @WorkHard 

 

Please share data in text format and in a tabular way.

 

,Regards,
Harsh Nathani
Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)

Added underlying data in OP. Thank you

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.