Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi Dax experts,
I need help with Matrix measure totals , im getting wrong totals for Hierarrchy, if i use divide in measure,Please help me with this.Need calculate total for Country wise as well as by state and by City.Pleae could any of you help me with this.
Hi @learnerdax
does that also mean, the country values in the first matrix is wrong? It sould be always the sum of its states and the state should always be the sum of its cities?
Yes, in First Matrix Sales/Qty and down matrix
USA - 550(State Cal -350+Flo -100+Tx-100)
UK - 300(same for UK states)
total -850
If so please try
Sales/Qty =
SUMX (
SUMMARIZE ( Hierarchy, Hierarchy[Country], Hierarchy[State], Hierarchy[City] ),
CALCULATE ( DIVIDE ( SUM ( Hierarchy[Sales] ), SUM ( Hierarchy[Qty] ) ) )
)
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 5 | |
| 5 | |
| 4 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 24 | |
| 21 | |
| 13 | |
| 12 | |
| 10 |