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
Hi All,
I created a measure with two variables, which should provide correct totals for rows and for columns in Matrix Table.
Rows show products(dim_a [a]), Columns show weeks (dim_b[b]).
When I use ‘var a’, it works correctly for column total, if ‘var b’ for row total.
I have no idea how to join them in Return to see correct totals in rows and columns at the same time.
Measure =
var a =CALCULATE(IF(COUNTROWS(VALUES(dim_a[a]))=1,[Measure V1],sumx(values(dim_a[a]),[Measure V1])))
var b = CALCULATE(IF(COUNTROWS(VALUES(dim_b[b]))=1,[Measure V1],sumx(values(dim_b[b]),[Measure V1])))
Return ??
Please support. Thank you.
@A_a_a , Try like
Measure =
var a= sumx(filter(values(dim_a[a]),COUNTROWS(VALUES(dim_a[a]))=1 ),[Measure V1])
var b= sumx(filter(values(dim_b[b]),COUNTROWS(VALUES(dim_b[b]))=1 ),[Measure V1])
return
a+b
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 |
|---|---|
| 30 | |
| 24 | |
| 23 | |
| 17 | |
| 15 |
| User | Count |
|---|---|
| 63 | |
| 36 | |
| 30 | |
| 23 | |
| 22 |