Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Table 1 Table 2
===== ========================
Name Name KPI-1 KPI-2 KPI-3
------- ------------------------------------------
A-1 A-1 1 2 3
A-2 A-2 1 2 3
A-3 A-3 1 2 3
B-1 B-1 1 2 3
B-2 B-2 1 2 3
B-3 B-3 1 2 3
A-1 1 2 3
A-2 1 2 3
A-3 1 2 3
Hi,
I have 2 tables which are connected by "Name"
I need to sum KPIs with condition. It should be blank when the name = "A-1" or the name begin from "B"
If I make a BI report, it should look like this:
KPI-1 KPI-2 KPI-3
-------------------------------------------------------
A-1
A-2 2 4 6
A-3 2 4 6
B-1
B-2
B-3
---------------------------------------------------------
Total 4 8 12
I tried adding a column as below:
If you put a simple SUM as the aggregation for each KPI field, create a table visual with Name and each kpi field, then using the Filter pane (Advanced filtering), add the conditions you want to filter the name field (you can add multiple conditions with 'and'). You should be able to display the 2 rows with figures (and the totals will be correct)
So the output won't be exactly what you specified but powerbi doesn't like displaying rows with blanks.
Hope it helps.
Please post the data as text and then show what the desired output is.
Measures are evaluated according to context so we need to see the output format.
Hi, @HotChilli
Thank you for the suggestion. I made a change in the text. Would you please advise if it's sufficient? Or I should put some more info there? Thank you for your help!
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
9 | |
9 | |
8 | |
8 |
User | Count |
---|---|
14 | |
12 | |
11 | |
11 | |
8 |