Forum Discussion
Adding a column with fixed value in matrix
Not sure I got it
Calculate([Net Revenue], all(Table))
hi amitchandak and Anonymous
just to make my question clearer, here is what i tried
- v-lionel-msft6 years ago
Community Support
Hi msalahkar ,
Do you want this result? (My columns are from the same table.)
Measure 3 = CALCULATE( SUM('Sales 2015'[Value]), ALL('Sales 2015'[Brand]), //Remove filter on [Brand] column ALLEXCEPT( 'Sales 2015', 'Sales 2015'[CountryRegion], 'Sales 2015'[Month] // Group and sum by [CountryRegion] and [Month] ) )Maybe you can show an example data model composed of these two tables and the results you want, we can compare the two to see how to calculate.
Best regards,
Lionel ChenIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- msalahkar6 years agoFrequent Visitor
Here is the table which from which I am filtering the data. The values are in other table and it is sliced by this table.
Now I tried your formmula but it doesnt work. Here is how its showing now.
basically in QTR 1, i need 2,027,119 in all field of Account_subcategory_description. similarly in QTR2, I need 1,390,671 in all fileds of Account_subcategory_description. like this
Account_subcategory_description QTR1 QTR2 Gross Revenue 2,027,119 1,390,671 OOP 2,027,119 1,390,671 Car Allowance 2,027,119 1,390,671 for Allrevenue2 column i am using this measure
All Revenue2 = CALCULATE(SUM(General_Ledger_Entries[Correct Amount]),FILTER(Chart_of_Accounts,Chart_of_Accounts[AccountHead] = "Net Revenue"),ALL(Chart_of_Accounts[AccountHead]))Thanks- v-lionel-msft6 years ago
Community Support
Hi msalahkar ,
My understanding is that you need to ignore the filters on [Account Head] column and [Account_Subcategory_Descript] column and sum by [Fiscal Quarter] column, is that right?
Try this measure again:
Measure 2 = CALCULATE( SUM(General_Ledger_Entries[Correct Amount), ALL(Chart_of_Accounts,Chart_of_Accounts[AccountHead],Chart_of_Accounts,Chart_of_Accounts[Account_Subcategory_Descript]), ALLEXCEPT( General_Ledger_Entries, General_Ledger_Entries[Fiscal Quarter] ) )Best regards,
Lionel ChenIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.