Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
I am trying to create a matrix that shows revenue by location and project .. The individual projects are working great, but the sum total on the matrix for the location is not summing the numbers...
My formulas
Table: AllocatedProjectRevenue (calculated table, formula below)
Inputs:
Amount = Revenue for a project
Percent Incremental = % of incremental revenue
Percent Replacement = % of replacement revenue
ID = Project ID #
Location = Production Location
Revenue Type = Table with three options for revenue type (Incremental, Replacement, Total)
Formulas:
Incremental Revenue = if(selectedvalue(AllocatedProjectRevenue[Percent Total]) = 1, SUMX(AllocatedProjectRevenue, AllocatedProjectRevenue[Amount])*SELECTEDVALUE(AllocatedProjectRevenue[Percent Incremental ], 0), 0)
2/2020 | 3/2020 | ... | 6/2020 | 7/2020 | |
Location | 150 | 125 | 200 | 200 | |
-- Project 1 | 50 | 75 | 75 | 75 | |
-- Project 2 | 100 | 100 | 125 | 125 |
2/2020 | 3/2020 | ... | 6/2020 | 7/2020 | |
Location | 0 | 0 | 0 | 0 | |
-- Project 1 | 50 | 75 | 75 | 75 | |
-- Project 2 | 100 | 100 | 125 | 125 |
You may need to try MAX() or AVERAGE() instead of selected value. At the Project level when more than one location is selected, you have too many rows to look at and there is not just 1 selectedvalue for the %.
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com