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.
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!
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
7 | |
7 | |
6 | |
6 |
User | Count |
---|---|
27 | |
12 | |
10 | |
9 | |
6 |