Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi everyone,
I'm new to Power BI and trying to build a new table (table) from the bigger one (initial_table) based on some calculations and filtering. I couldn't find a solution to my problem myself. My table is quite big but in general it looks similarly as in this example:
| Country | Source | Sum |
| Austria | Internal | 23 |
| Austria | External | 18 |
| Austria | Other | 99 |
| France | External | 44 |
| France | Internal | 57 |
| Italy | Internal | 11 |
What I would like to do is to split column "Source" into separate columns reflecting data for the underlying sources per country (where the fields with no data should be replaced with the blank field), i.e. I want the final tabel to be the following:
| Country | Internal | External | Other |
| Austria | 23 | 18 | 99 |
| France | 57 | 44 | |
| Italy | 11 |
I tried creating the metric which should reflect such selection for each of the columns and then assign a new column to that metric, for instance for Internal column it would be the following two lines respectively:
Solved! Go to Solution.
@zhannak , Try like
SUMMARIZE(initial_table, initial_table[Country],"Internal", sumx(filter(initial_table,initial_table[Source] ="Internal"), [Sum])
,"External", sumx(filter(initial_table,initial_table[Source] ="External"), [Sum])
,"Other", sumx(filter(initial_table,initial_table[Source] ="Other"), [Sum]) )
As the combinations are unique, I doubt it will sum up or you can use Avg
@zhannak , Try like
SUMMARIZE(initial_table, initial_table[Country],"Internal", sumx(filter(initial_table,initial_table[Source] ="Internal"), [Sum])
,"External", sumx(filter(initial_table,initial_table[Source] ="External"), [Sum])
,"Other", sumx(filter(initial_table,initial_table[Source] ="Other"), [Sum]) )
As the combinations are unique, I doubt it will sum up or you can use Avg
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 21 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 32 | |
| 31 | |
| 20 | |
| 12 | |
| 12 |