Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi All,
i want to know how can i join two tables with a common feild to make a resultant table.
You can use Merge Queries option in Query Editor and can use Left Outer Join for the combined table.
Or
You can Drag and Drop the relationship arrow from the Table 1 to Table 2 between two common fields.
In this way, You can use the Relationship flow logic between tables and You would not create much more flattened tables. This approach is suitable in line with the best methodologies to create data warehouse.
Hope this has cleared your understanding.
@BhaveshPatel Actually i have created realtionship between the tables but i have to summerize the amount feild based on id which is in different table that why i need a join to create a new resultant table.
but i will try the merge query.
Hi @Satish_Kumar,
Actually i have created realtionship between the tables but i have to summerize the amount feild based on id which is in different table that why i need a join to create a new resultant table.
As you have created a relationship between the two tables, you don't need a join to create a new resultant table to summarize the amount field based on id which is in different table. You can just use the formula below to create a calculate column in the second table to summarize the amount field in first table.
Amount = CALCULATE ( SUM ( Table1[Amount Including Tax] ) )
Regards
yes i have done that too. but will you please send me a syntax of joining two table in DAX to make resultant table.
beside of this exaple.
And Lastly thanks for help.
Reagrds,
Satish Kumar
Hi @Satish_Kumar,
Have you tried to make the resultant table in Query Editor as BhaveshPatel mentioned above? It should work.
Regards
Love to recreate a solution for you if you can post sample data and expected output.
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 |
2nd table.
No_ | Buy-from Vendor No_ | Posting Date | Posting Description |
PINV/0809/00001 | VEN0027 | 4/15/2008 0:00 | Order PO00001 |
PINV/0809/00002 | VEN0027 | 4/15/2008 0:00 | Order PO00002 |
PINV/0809/00003 | VEN0027 | 4/21/2008 0:00 | Order PO00003 |
PINV/0809/00004 | VEN0004 | 4/22/2008 0:00 | Order PO00004 |
PINV/0809/00005 | VEN0004 | 4/22/2008 0:00 | Order PO00005 |
PINV/0809/00006 | VEN0004 | 4/22/2008 0:00 | Order PO00006 |
PINV/0809/00007 | VEN0027 | 5/7/2008 0:00 | Order PO00007 |
PINV/0809/00008 | VEN0027 | 5/7/2008 0:00 | Order PO00008 |
PINV/0809/00009 | VEN0027 | 5/8/2008 0:00 | Order PO00009 |
PINV/0809/00010 | VEN0004 | 5/31/2008 0:00 | Order PO00010 |
PINV/0809/00011 | VEN0006 | 5/29/2008 0:00 | Order PO00012 |
PINV/0809/00012 | VEN0006 | 5/29/2008 0:00 | Order PO00013 |
PINV/0809/00013 | VEN0004 | 5/12/2008 0:00 | Order PO00011 |
PINV/0809/00014 | VEN0039 | 4/17/2008 0:00 | Order PO00015 |
PINV/0809/00015 | VEN0040 | 6/1/2008 0:00 | Order PO00016 |
PINV/0809/00016 | VEN0041 | 5/14/2008 0:00 | Order PO00017 |
PINV/0809/00017 | VEN0013 | 5/12/2008 0:00 | Order PO00018 |
PINV/0809/00018 | VEN0010 | 6/29/2008 0:00 | Order PO00019 |
PINV/0809/00019 | VEN0004 | 7/7/2008 0:00 | Order PO00020 |
PINV/0809/00020 | VEN0004 | 7/7/2008 0:00 | Order PO00021 |
PINV/0809/00021 | VEN0004 | 7/7/2008 0:00 | Order PO00022 |
PINV/0809/00022 | VEN0027 | 6/27/2008 0:00 | Order PO00023 |
PINV/0809/00023 | VEN0027 | 6/25/2008 0:00 | Order PO00024 |
PINV/0809/00024 | VEN0027 | 6/27/2008 0:00 | Order PO00025 |
PINV/0809/00025 | VEN0027 | 6/27/2008 0:00 | Order PO00026 |
PINV/0809/00026 | VEN0027 | 6/11/2008 0:00 | Order PO00027 |
PINV/0809/00027 | VEN0027 | 7/14/2008 0:00 | Order PO00028 |
PINV/0809/00028 | VEN0006 | 7/11/2008 0:00 | Order PO00029 |
PINV/0809/00029 | VEN0004 | 7/11/2008 0:00 | Order PO00030 |
PINV/0809/00030 | VEN0004 | 7/11/2008 0:00 | Order PO00031 |
PINV/0809/00031 | VEN0004 | 7/11/2008 0:00 | Order PO00032 |
PINV/0809/00032 | VEN0004 | 7/11/2008 0:00 | Order PO00033 |
PINV/0809/00033 | VEN0018 | 7/29/2008 0:00 | Order PO00035 |
PINV/0809/00034 | VEN0043 | 6/20/2008 0:00 | Order PO00036 |
PINV/0809/00035 | VEN0004 | 8/8/2008 0:00 | Order PO00038 |
PINV/0809/00036 | VEN0044 | 1/1/2009 0:00 | Order PO00039 |
PINV/0809/00037 | VEN0004 | 7/24/2008 0:00 | Order PO00040 |
PINV/0809/00038 | VEN0010 | 7/12/2008 0:00 | Order PO00034 |
PINV/0809/00039 | VEN0045 | 7/30/2008 0:00 | Order PO00043 |
@BhaveshPatel on the basis of No_ feild i have to join these table together to summerize the amount feild.
Hi @BhaveshPatel hoping that you found the solution for this issue i am waiting for the solution.
Sorry to keep you waiting. As I was working on the other problem.
Please follow the attached screenshot for the solution.
Step 1: Go to the Table 1 and select Edit Queries, Select the Merge as a new Queries.
Step 2: Expand the newly created column and Select the amount including Tax.
Step 3 : Final Results
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
99 | |
82 | |
70 | |
60 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |