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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi all, I just can't seem to figure out how to do this... please help!
I would like to display in a table visual ID and Category as columns, where the Category is that with the highest summed volume based on the Text selected.
Desired output in table visual:
| ID | Category |
| Item One | C |
| Item Two | D |
Table 1:
| ID | Text | Category |
| Item One | text one | A |
| Item One | text two | A |
| Item One | text three | A |
| Item One | text four | B |
| Item One | text five | B |
| Item One | text six | B |
| Item One | text seven | C |
| Item One | text eight | C |
| Item One | text nine | C |
| Item Two | text ten | A |
| Item Two | text one | A |
| Item Two | text two | C |
| Item Two | text eleven | D |
| Item Two | text twelve | E |
Table 2:
| Text | Volume |
| text one | 10 |
| text two | 20 |
| text three | 30 |
| text four | 40 |
| text five | 10 |
| text six | 20 |
| text seven | 30 |
| text eight | 90 |
| text nine | 100 |
| text ten | 50 |
| text eleven | 200 |
| text twelve | 10 |
Solved! Go to Solution.
Assuming Table1 (Many side) is related to Table 2 (One Side) using Text Column
Try this Measure
Measure =
CONCATENATEX (
TOPN (
1,
CALCULATETABLE ( VALUES ( Table1[Category] ) ),
CALCULATE (
SUM ( Table2[Volume] ),
CROSSFILTER ( Table1[Text], Table2[Text], BOTH )
), DESC
),
[Category],
","
)
Assuming Table1 (Many side) is related to Table 2 (One Side) using Text Column
Try this Measure
Measure =
CONCATENATEX (
TOPN (
1,
CALCULATETABLE ( VALUES ( Table1[Category] ) ),
CALCULATE (
SUM ( Table2[Volume] ),
CROSSFILTER ( Table1[Text], Table2[Text], BOTH )
), DESC
),
[Category],
","
)
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 41 | |
| 38 | |
| 36 | |
| 30 | |
| 28 |
| User | Count |
|---|---|
| 128 | |
| 88 | |
| 79 | |
| 67 | |
| 62 |