Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! 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
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 9 | |
| 5 | |
| 4 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 23 | |
| 12 | |
| 11 | |
| 9 | |
| 8 |