Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
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
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
90 | |
87 | |
80 | |
69 | |
69 |
User | Count |
---|---|
226 | |
129 | |
119 | |
83 | |
77 |