Forum Discussion
ajaydavidluke
3 years agoHelper I
Turnover Groups
Good afternoon Community, I have a connundrum that I wanted some help with 🙂 I have a simple list of turnover by account 2022. What I would like to do is create a measure that sums the t...
ajaydavidluke
3 years agoHelper I
Here is a measure I have been working on:
When I create a table view, my measure is accurate but my calclulated column is incorrect:
I cannot insert my measure into the legend but when I insert the same calculated column I get the adverse results.
Here is my full table:
I've tried many many combinations but the legend remains incorrect and I cannot present the data as it not accurate enough.
Lets strip this all back and focus in on the data set, it has multiple invoice sku lines, line value represents SKU QTY x UNIT PRICE and this is done at source.
I then created a column TOTAL TURNOVER which is SUM(
'Daily Turnover 2022'[Line Value]), I used this in the calculated column and does not work.
I've also changed the column to
CALCULATE(IF(SUM('Daily Turnover 2022'[Line Value]) <= 5000, "<5k",
IF(SUM('Daily Turnover 2022'[Line Value]) > 5000 && SUM('Daily Turnover 2022'[Line Value]) <= 25000, "5k > 25k",
IF(SUM('Daily Turnover 2022'[Line Value]) > 25000 && SUM('Daily Turnover 2022'[Line Value]) <= 50000, "25k > 50k",
IF(SUM('Daily Turnover 2022'[Line Value]) > 50000 && SUM('Daily Turnover 2022'[Line Value]) <= 150000, "50k > 150K",
IF(SUM('Daily Turnover 2022'[Line Value]) > 150000 && SUM('Daily Turnover 2022'[Line Value]) <= 10000000, ">150k")))))).
Doesnt work but the measure does? What is missing from the column that makes it not work the same as the measure?
saravanan_p
3 years agoResolver III
Remove calculate and sum from your code which is used to create calculated column. It should work