Forum Discussion
sum column error
There may be a more elegant way of doing this but this works:
Table =
SELECTCOLUMNS(
FILTER(
Outbound,
Outbound[TER_FYTD_USD]
),
"New Column",
SUM(Outbound[TER_FYTD_USD])
)Hope this helps,
Parker
Anonymous
Hi, this still doesn't works, see the screenshot how the output is displayed.
- Anonymous8 years agoNot applicable
Well we're getting closer. Try limiting to just 1 row using this formula:
Table = TOPN( 1, SELECTCOLUMNS( FILTER( Outbound, Outbound[TER_FYTD_USD] ), "New Column", SUM(Outbound[TER_FYTD_USD]) ) )- vjnvinod8 years agoImpactful Individual
Anonymous
this may not work in my other situations, I created a new coloumn using the below
SummarisedAccountsector = SELECTCOLUMNS(Inbound,"Sector",Inbound[AccountSector],"USD",Inbound[TER_FYTD_USD])
But whats happening is, i have only 3 account sector (Technology, Media & entertainment and Telecom)
my main issue is its not grouping the sector and their respetive aggregate sums
see the table table below
Sector USD Technology 400000 Technology 400000 Technology 400000 media & entertainment 400000 media & entertainment 400000 media & entertainment 400000 telecom 700000 telecom 700000 telecom 700000 Expected table
Sector USD Technology 400000 media & entertainment 5000000 telecom 700000 - Ashish_Mathur8 years agoSuper User
Hi,
How have you arrived at the numers in the Expected table - they are difinitely not additions. Anyways, just drag Sector to the row labels of the Table visual and then write a simple SUM measure
=SUM(Data[USD])
Hope this helps.