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! It's time to submit your entry. Live now!
I can't understand DAX..
I want to create the "table" in visualizations by using measure value.
| Number | Item | Count |
| 0097 | WN | 100 |
It is direct query. So i can't use the "lookupvalue" function.
Pbix.file (from onedrive)
could you write the measure without lookupvalue ?
Table A
Number | Item |
0097 | WN |
1303 | CO |
2955 | CO |
7496 | CO |
7820 | IC |
0308 | Fl |
5692 | CO |
6512 | MA |
8251 | Fl |
8257 | CO |
8259 |
Table B
Item | Item_A |
AL | AA |
AR | AA |
CO | CC |
Fl | FF |
IC | FF |
MA | MM |
WN | WW |
WT | WW |
Table C
Number | Item_A | Count |
0097 | AA | 50 |
0097 | WW | 100 |
0308 | FF | 10 |
0327 | MM | 20 |
0340 | MM | 30 |
1303 | CC |
|
1567 | MM |
|
1654 | WW | 1 |
1658 | AA | 1 |
1658 | FF | 1 |
2068 | WW |
|
2141 | FF | 1 |
2155 | CC | 1 |
2181 | WW | 1 |
2184 | AA | 1 |
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
thank you for your reply.
Yes, I've done.
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
Thank you.
TableA "Item" has relation with TableB "Item".
TableB "Item_A" has relation with TableB "Item_A".
-Table A : Direct Query [ I don't use the related , lookupvalue, crossjoing function ]
-Table B : Import
-Table C : Direct Query [ I don't use the related , lookupvalue, crossjoing function ]
So,
I want to get the table
Create the table in Visulizations.
Input values
Values :
TableA[Number]
TableB[Item_A]
Measure
Measure......
Result : SUM(TableC[Count])
Condition : TableA[Number]+Related(TableB[Item_A]) = TableC[Number]+TableC[Item_A]
DAX..
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 56 | |
| 42 | |
| 41 | |
| 21 | |
| 21 |
| User | Count |
|---|---|
| 150 | |
| 106 | |
| 65 | |
| 36 | |
| 36 |