Forum Discussion
Calculated subtable
/* Calculated Columns */
TotalRevenue =
VAR _Company = 'DataTable'[Company]
RETURN
CALCULATE(
SUM('DataTable'[Revenue]),
FILTER(
ALL('DataTable'),
'DataTable'[Company] = _Company
)
)
Tier =
IF(
[TotalRevenue] < 2000,
"Tier 1 - 0-2000",
IF(
[TotalRevenue] < 3000,
"Tier 2 - 2000-3000",
IF(
[TotalRevenue] < 4000,
"Tier 3 - 3000-4000",
"Tier 4 - over 4000"
)
)
)
You can use a Matrix with Owner on rows, Tier on columns, and a count of Company in values OR create a calculated table from the results.
When i replace 'data table' with my table name and then the column in [ ], it just shows various errors
I only have a company ID in this data set. This then links to a company master list that would show their company name.
Thanks for the quick help really greateful
- grantsamborn4 years agoSolution Sage
Those calculated columns are in DAX not PowerQuery.
Sorry if I wasn't clear.
- lea_3134 years agoHelper I
ok great thanks
Will have a look and see how it works, thanks again