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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi community!
I have a data with 1 dimensional table and different transaction tables.
The tables are linked by Product and Date.
Now I would like to create a calculated table that contains this format:
Country | Area | Team | KPI | Level | Value |
France | AA | A1 | Sales | Good | 5 |
France | AA | A1 | Sales | Neutral | 6 |
France | AA | A1 | Sales | Bad | 8 |
France | AA | A1 | Costs | Good | 8 |
France | AA | A1 | Costs | Neutral | 6 |
France | AA | A1 | Costs | Bad | 5 |
As you can see we have 3 columns with the dimensions Country, Area and Team.
Then we have the specific KPI (Sales, Costs, Revenue) with a specific "Level" and value.
The value shows the frequence/ bumber of weeks we have been able to reach a specific goal:
Sales
How is this possible with dax?
I don't need this information as a matrix, that would be easy.
I need this as a calculated table.
I am grateful for every help!
Solved! Go to Solution.
Hi @joshua1990 ,
I created some data:
For example:
Transaction Table: Costs
When the three table structures of Transaction Table: Sales Transaction Table: Revenue Transaction Table: Costs are the same, we can use the Append method.
Here are the steps you can follow:
1. Go to Power query and select Append Queries -- Append Queries as New.
Enter the Append interface, select "Three or more tables", add three tables.
Result:
2. Select the created new table Append1, select [Sales],[Revenue],[Costs] – Unpivot Columns.
3. Select the two columns in the new data and change the names to "KPI", "Amount”.
4. Create calculated column.
Level =
SWITCH(
TRUE(),
'Append1'[Amount]<=200,"Bad",
'Append1'[Amount]>200 &&'Append1'[Amount]<=500,"Neutral",
'Append1'[Amount]>500,"Good")
Value =
COUNTX(FILTER(ALL('Append1'),'Append1'[KPI]=EARLIER('Append1'[KPI])&&'Append1'[Level]=EARLIER('Append1'[Level])),[Level])
5. Create calculated table.
Table =
SUMMARIZE('Append1',
'Append1'[Country],'Append1'[Area],'Append1'[Team],'Append1'[KPI],'Append1'[Level],'Append1'[Value])
6. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @joshua1990 ,
I created some data:
For example:
Transaction Table: Costs
When the three table structures of Transaction Table: Sales Transaction Table: Revenue Transaction Table: Costs are the same, we can use the Append method.
Here are the steps you can follow:
1. Go to Power query and select Append Queries -- Append Queries as New.
Enter the Append interface, select "Three or more tables", add three tables.
Result:
2. Select the created new table Append1, select [Sales],[Revenue],[Costs] – Unpivot Columns.
3. Select the two columns in the new data and change the names to "KPI", "Amount”.
4. Create calculated column.
Level =
SWITCH(
TRUE(),
'Append1'[Amount]<=200,"Bad",
'Append1'[Amount]>200 &&'Append1'[Amount]<=500,"Neutral",
'Append1'[Amount]>500,"Good")
Value =
COUNTX(FILTER(ALL('Append1'),'Append1'[KPI]=EARLIER('Append1'[KPI])&&'Append1'[Level]=EARLIER('Append1'[Level])),[Level])
5. Create calculated table.
Table =
SUMMARIZE('Append1',
'Append1'[Country],'Append1'[Area],'Append1'[Team],'Append1'[KPI],'Append1'[Level],'Append1'[Value])
6. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
User | Count |
---|---|
12 | |
12 | |
11 | |
10 | |
9 |