Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.
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
Check out the November 2023 Power BI update to learn about new features.
Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.