Forum Discussion
How to use group's in data
- Anonymous10 years ago
Hi Satish_Kumar,
Please try below code if it works on your side.
Sample:
Tables.
Formula:
Summary Table = ADDCOLUMNS(SUMMARIZE(Sheet1,Sheet1[Document No_],Sheet1[Buy-from Vendor No_],"Sum of No",SUMX(FILTER(ALL(Sheet1),Sheet1[Document No_]=EARLIER(Sheet1[Document No_])),Sheet1[Amount Including Tax])),"Posting Date",LOOKUPVALUE(Sheet2[Posting Date],Sheet2[No_],Sheet1[Document No_]),"Posting Description",LOOKUPVALUE(Sheet2[Posting Description],Sheet2[No_],Sheet1[Document No_]))
Regards,
Xiaoxin Sheng
Hi Satish_Kumar,
First of all, Summarize function is used to summary columns and return a result table. So you can't use it at calculate column. You need to use calculate table to receive the result of the function.
For example:
Base table.
I want to summary above table and get the count of product and sum of amount, formula:
Summary Table = SUMMARIZE(Sheet1,[Product],"Count",COUNTA(Sheet1[Product]),"Sum",SUM(Sheet1[Amout]))
In addition, you can directly use visual to get the summary result:
Table visual:
Matrix visual:
Reference:
Returns a summary table for the requested totals over a set of groups.
Regards,
Xiaoxin Sheng
- Satish_Kumar10 years ago
Helper V
HI TO ALL ...
THANXX FOR HELP...
BUT I AM ASKING FOR GROUPING AND JOINNING OF TWO TABLE TO MAKE A COMMAN TABLE...
GROUPING OF TABLE IS DONE SO PLEASE HELP ME IN JOIN ASAP.
- Satish_Kumar10 years ago
Helper V
HI TO ALL ...
THANXX FOR HELP...
BUT I AM ASKING FOR GROUPING AND JOINNING OF TWO TABLE TO MAKE A COMMAN TABLE...
GROUPING OF TABLE IS DONE SO PLEASE HELP ME IN JOIN ASAP.
- Anonymous10 years agoNot applicable
Hi Satish_Kumar,
If you share us some sample data the requirement will be more clearly.
For join two table, you can use NATURALINNERJOIN,NATURALLEFTOUTERJOIN. You can also use SelectColumns to choose different columns from different tables.
Regards,
Xiaoxin Sheng
- Satish_Kumar10 years ago
Helper V
i am sending you the demo data for this issue.
Document No_ Buy-from Vendor No_ Posting Group Amount Including Tax PINV/0809/00001 VEN0027 FINISHED 220895 PINV/0809/00002 VEN0027 FINISHED 625408 PINV/0809/00003 VEN0027 FINISHED 33098 PINV/0809/00004 VEN0004 FINISHED 322341 PINV/0809/00005 VEN0004 FINISHED 3961 PINV/0809/00006 VEN0004 49838 PINV/0809/00006 VEN0004 0.02 PINV/0809/00007 VEN0027 FINISHED 15912 PINV/0809/00008 VEN0027 FINISHED 336177 PINV/0809/00009 VEN0027 FINISHED 710793 PINV/0809/00010 VEN0004 FINISHED 2154058 PINV/0809/00011 VEN0006 FINISHED 23204 PINV/0809/00012 VEN0006 FINISHED 946444 PINV/0809/00013 VEN0004 191290 PINV/0809/00013 VEN0004 -0.45 PINV/0809/00014 VEN0039 48687 PINV/0809/00015 VEN0040 COMPUTERS 30720 PINV/0809/00016 VEN0041 OFFICE EQU 1260 PINV/0809/00016 VEN0041 OFFICE EQU 1500 PINV/0809/00017 VEN0013 UPS & BATT 73500 PINV/0809/00018 VEN0010 FINISHED 22781 PINV/0809/00018 VEN0010 FINISHED 5923 PINV/0809/00019 VEN0004 FINISHED 1057044.34 PINV/0809/00019 VEN0004 -0.34 PINV/0809/00020 VEN0004 FINISHED 8225 PINV/0809/00021 VEN0004 147258 PINV/0809/00021 VEN0004 -0.09 PINV/0809/00022 VEN0027 FINISHED 301702.91 PINV/0809/00022 VEN0027 0.09 PINV/0809/00023 VEN0027 FINISHED 39671.1 PINV/0809/00023 VEN0027 -0.1 PINV/0809/00024 VEN0027 FINISHED 678730.08 PINV/0809/00024 VEN0027 -0.08 PINV/0809/00025 VEN0027 FINISHED 787962.96 PINV/0809/00025 VEN0027 0.04 PINV/0809/00026 VEN0027 FINISHED 229900.19 PINV/0809/00026 VEN0027 -0.19 PINV/0809/00027 VEN0027 FINISHED 131541.53 PINV/0809/00027 VEN0027 0.47 PINV/0809/00028 VEN0006 FINISHED 5886013.26 PINV/0809/00028 VEN0006 -0.26 PINV/0809/00029 VEN0004 20025 PINV/0809/00029 VEN0004 -0.09 PINV/0809/00030 VEN0004 FINISHED 143743.03 PINV/0809/00030 VEN0004 -0.03 PINV/0809/00031 VEN0004 15416 PINV/0809/00031 VEN0004 -0.42 PINV/0809/00032 VEN0004 FINISHED 110657.55 PINV/0809/00032 VEN0004 0.45 PINV/0809/00033 VEN0018 COMPUTERS 30000 PINV/0809/00034 VEN0043 COMPUTERS 23500 PINV/0809/00035 VEN0004 FINISHED 148066.35 PINV/0809/00036 VEN0044 FURNITURE 167562 PINV/0809/00037 VEN0004 FINISHED 180676.66 PINV/0809/00037 VEN0004 200 PINV/0809/00038 VEN0010 FINISHED 5923 PINV/0809/00038 VEN0010 22781 PINV/0809/00039 VEN0045 37079 PINV/0809/00040 VEN0004 15416 PINV/0809/00040 VEN0004 -0.42 PINV/0809/00040 VEN0004 0.42 PINV/0809/00041 VEN0004 20025 PINV/0809/00041 VEN0004 -0.09 PINV/0809/00041 VEN0004 0.09 PINV/0809/00042 VEN0004 FINISHED 110657.55 PINV/0809/00042 VEN0004 0.45 PINV/0809/00042 VEN0004 -0.45 PINV/0809/00043 VEN0004 FINISHED 143743.03