you posted a twb workbook that does not include data - it needs to be a twbx book with the data attached
the message is telly you you need to wrap category and sub cat in a attr() just like you did with geography
If this posts assists in resolving the question, please mark it helpful or as the 'correct answer' if it resolves the question. This will help other users find the same answer/resolution. Thank you.
Add Attr() in your calculation with attr([category]) attr([sub cat]
can't be of any more help without seeing your TWNX workbook with the data included
I have replaced the twb file by twbx file. Let me know if you need any