Forum Discussion
It's a matrix totalling problem!
Hello,
There are many, many posts about the issues with getting matrix totals and subtotals to behave in the way you want, but I am too inexperienced a coder to be able to extrapolate from the examples I can find to the problem that I have! My matrix measure is particularly complicated becuase: a) it is made up of several other measures, b) there is a triple layer split in my data - I have a row for each Subject, Subjects are grouped into Schools, Schools are then grouped into Colleges, and I need a final grand total, and c) I have some hard coding for particular Subjects, because for these I want to ignore the calculation being performed for most Subjects and just use a hard coded figure. With me so far?
My measure looks like this:
It wasn't an ISINSCOPE issue. I had to amend the way it was summing things in each of the individual measures. Once I had done that, the original coding for the main measure worked correctly.
4 Replies
- djurecicSuper User
Hi HM615 ,
I would look at using ISINSCOPE to determine what level of the heirarchy you are at:
https://learn.microsoft.com/en-us/dax/isinscope-function-dax
- HM615Advocate I
Thank you for this suggestion. I am still trying to work out how I incorporate this into my particular measure. Given that the elements that make up my MainResultRaw (below) are all individual measures, and not columns, would this still be the way to go?
VAR MainResultRaw =factCap2026[UF Estimate Home]+ factCap2026[CF Estimate Home]+ factCap2026[Insurance Estimate Home]+ factCap2026[NoResponse Estimate Home]+ factCap2026[Awaiting Estimate Home]+ factFutureReg[UGY01_futurereg HOME]+ factDrl2025ChangeCourse[Home Change Course who reg]+ [FY Progression Home]
- v-sshirivoluCommunity Support
Hi HM615 ,
I would take a moment to thank djurecic , for actively participating in the community forum and for the solutions you’ve been sharing in the community forum. Your contributions make a real difference.
I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions
- HM615Advocate I
It wasn't an ISINSCOPE issue. I had to amend the way it was summing things in each of the individual measures. Once I had done that, the original coding for the main measure worked correctly.