Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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 July 2025 Power BI update to learn about new features.
User | Count |
---|---|
22 | |
7 | |
6 | |
6 | |
6 |
User | Count |
---|---|
27 | |
12 | |
10 | |
9 | |
6 |