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 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]))
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 |
---|---|
109 | |
98 | |
80 | |
64 | |
57 |
User | Count |
---|---|
145 | |
110 | |
91 | |
84 | |
66 |