This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
I'm trying to evaluate below query but getting error "Query(22,48) Column "Category" cannot be found or may not be used in this expression".
Let me know if i'm missing something.
DEFINE
VAR table1 =
UNION (
ROW ( "Cateogry", "A", "Value", INT ( 1 ) ),
ROW ( "Cateogry", "A", "Value", INT ( 2 ) ),
ROW ( "Cateogry", "A", "Value", INT ( 3 ) ),
ROW ( "Cateogry", "B", "Value", INT ( 4 ) ),
ROW ( "Cateogry", "B", "Value", INT ( 5 ) ),
ROW ( "Cateogry", "C", "Value", INT ( 6 ) ),
ROW ( "Cateogry", "c", "Value", INT ( 7 ) )
)
--EVALUATE table1
VAR H =
SUMMARIZE (
table1,
ROLLUP ( [Cateogry] ),
"Sum of Value", SUMX ( table1, [Value] ),
"Max of Value", MAXX ( table1, [Value] ),
"Average of Value", FIXED ( AVERAGEX ( table1, [Value] ), 1 ),
"Is Category Subtotal", ISSUBTOTAL([Category])
)
EVALUATE
HThanks,
Harry
Solved! Go to Solution.
You have Category instead of Cateogry (which you use to build the table). And that's what the error message complains about. Let me know if there are other things not working after updating that.
Please mark the question solved when done and consider giving kudos if posts are helpful.
Cheers ![]()
You have Category instead of Cateogry (which you use to build the table). And that's what the error message complains about. Let me know if there are other things not working after updating that.
Please mark the question solved when done and consider giving kudos if posts are helpful.
Cheers ![]()
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 9 | |
| 9 | |
| 8 | |
| 6 | |
| 6 |