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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Tihannah
Resolver II
Resolver II

Dax to calculate % of Revenue

I've looked all over, but can't seem to find a solution for this. I'm working on Financial statements and need to get a % of Total Revenue for each sub category. The way my data is laid out I had to create a measure that filters for Actuals and Budget:

Actuals

 CALCULATE(SUM('Financials'[Amt]),FILTER('Financials','Financials'[Type_Cd] = "Act"))

Budget

 CALCULATE(SUM('Financials'[Amt]),FILTER('Financials','Financials'[Type_Cd] = "Bud"))
 
My accounts are set up the same way as a financial statement
Accounts.PNG
 
I can easily just drop my Actual and Budget columns in again and select %ofTotal, which works fine, but to save real estate, I am creating "Budget"/ "Prior Year" buttons to toggle between for comparison vs Actual. So I need to create a dax that calculates % of Total Revenue for each account. Every example I've come across uses just a simple SUM(Sales[Sales]) type example, which doesn't work for the DAX I've had to create above to get these amounts. I feel like it shouldn't be this complicated, but I just keep hitting a wall with this. Any help is appreciated!

 

1 ACCEPTED SOLUTION
MattAllington
Community Champion
Community Champion

P&Ls in Power BI are quite challenging. I have comprehensive coverage at my website

here https://exceleratorbi.com.au/build-a-pl-with-power-bi/

and

here https://exceleratorbi.com.au/building-a-pl-in-power-bi-part-2-percentages/



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

View solution in original post

3 REPLIES 3
MattAllington
Community Champion
Community Champion

P&Ls in Power BI are quite challenging. I have comprehensive coverage at my website

here https://exceleratorbi.com.au/build-a-pl-with-power-bi/

and

here https://exceleratorbi.com.au/building-a-pl-in-power-bi-part-2-percentages/



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

This was EXTREMELY helpful and helped me tackle several other things. Thank you!!

Great. I'm glad it helped. 



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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