I need some help with a dax measure. Below you see a matrix in Power BI Desktop. What I want is to calculate the ratio of the Sum(of 0 and 1 level) divided by the measure [Total Salg vekt], which I already has calculated. But I am struggling getting the sum of the second level of my product hierarchy. I don't want to calculate level 1 or 3 in the hierarchy.
My hierarchy is located in my Product table and is named like this
Products - Category - Code - SubCategory
Can any of you show a dax code that my work as described above?
Thanks
Regards Geir