Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi all,
I have a table A :
Project | Status | KPI sales |
A | started | 12 |
A | ended | 70 |
B | started | 26 |
B | ended | 40 |
C | started | 23 |
C | ended | 120 |
And a table B :
Project | Status |
A | started |
B | ended |
C | ended |
I need to create a table C that summarizes A (Project and KPI sales) filtred by B (status), such as :
Project | KPI sales |
A | 12 |
B | 40 |
C | 120 |
I guess it will be something like
New table = summarize(filter... status from A = status from B)... but I can't get it right.
Thanks in advance for your help!
Ana
Solved! Go to Solution.
@AFra , If they joined on project Id then try first one
summarize(filter('table A', 'table A'[Status] ='table B'[Status] ), 'table A'[Project] , "sales" ,Sum('table A'[sales]))
or
summarize(filter(crossjoin('table A',selectcolumns('tableb', "pj" ,[Project], "st",[Status] )), [Status] =[St] && [Project] =[pj] ), 'table A'[Project] , "sales" ,Sum('table A'[sales]))
Hi @AFra ,
Second formula should work, has the problem be solved?
If it works for you, please consider to mark it as solution.
Best Regards,
Jay
@AFra , If they joined on project Id then try first one
summarize(filter('table A', 'table A'[Status] ='table B'[Status] ), 'table A'[Project] , "sales" ,Sum('table A'[sales]))
or
summarize(filter(crossjoin('table A',selectcolumns('tableb', "pj" ,[Project], "st",[Status] )), [Status] =[St] && [Project] =[pj] ), 'table A'[Project] , "sales" ,Sum('table A'[sales]))
User | Count |
---|---|
123 | |
77 | |
62 | |
50 | |
49 |
User | Count |
---|---|
175 | |
125 | |
60 | |
60 | |
58 |