Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi, I have created a P&L statement using the matrix visual.
I have one table containing the actual results and another table containing the P&L template.
In the matrix I would like to include a column with each line item as a % of total revenue, however the formula I use only works next to the total revenue line, see below.
My formula is
Solved! Go to Solution.
hi, @JNcr
You need to adjust the Total revenue (£'000) by ALL Function or ALLSELECTED Function as below:
Total revenue (£'000) = CALCULATE( [Actuals (£'000)] , FILTER(ALL(Accounts) , Accounts[Source] = "Actual") , FILTER(ALL(Accounts) , Accounts[Name] = "Revenue" ))
If not your case, please share your sample pbix file and expected output.
https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
Regards,
Lin
hi, @JNcr
You need to adjust the Total revenue (£'000) by ALL Function or ALLSELECTED Function as below:
Total revenue (£'000) = CALCULATE( [Actuals (£'000)] , FILTER(ALL(Accounts) , Accounts[Source] = "Actual") , FILTER(ALL(Accounts) , Accounts[Name] = "Revenue" ))
If not your case, please share your sample pbix file and expected output.
https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
Regards,
Lin
Thanks Lin, a great help
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
79 | |
78 | |
59 | |
36 | |
33 |
User | Count |
---|---|
98 | |
62 | |
56 | |
49 | |
41 |