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
I have a table F_MK with columns: ID, MKID, Dep, Tres. I also have a table F_Re with columns: ID, MKID, and Ac (General Number type). Both tables share the MKID column, and the ID columns in both tables have relationships with the Dim_Pl table, which has columns: ID and Name.
Now, I want to create a matrix where:
I created a measure as follows:
Total Ac = SUMX( VALUES(Dim_Pl[ID]), CALCULATE( SUM(F_Re[Ac]), TREATAS(VALUES(F_MK[MKID]), F_Re[MKID]) ) )
After creating the measure, the matrix will look like this:
But I want like this :
What I want is for each MKID, the values should only appear once (since the values are the result of the sum for a single MKID). However, right now, the values are getting duplicated.
Hi @Anonymous
It looks like you are trying to create a calculated column and not a measure. And the reason the values repeat is because the filter is on MKID only and all other columns are excluded.
try:
SUMX (
// Filter rows in table1
FILTER (
table1,
// Condition 1: Matching MKID value from table2
table1[MKID]
= EARLIER ( table2[MKID] ) // Condition 2: Matching Dep value from table2
&& table1[Dep] = EARLIER ( table2[Dep] ) // Condition 3: Matching ID value from table2
&& table1[ID] = EARLIER ( table2[ID] ) // Condition 4: Matching Tres value from table2
&& table1[Tres] = EARLIER ( table2[Tres] )
),
// Sum the [Value] column for the filtered rows
[Value]
)
Table2 is where will be createing this calculated column.
Hi danextian, Thank you for your appreciate time . I don't understand Table 1 and table 2 is what you mean. Two pictures that I post is I assume that the Matrix chart that I want to create. Information about the table is here:
"
I have a table F_MK with columns: ID, MKID, Dep, Tres. I also have a table F_Re with columns: ID, MKID, and Ac (General Number type). Both tables share the MKID column, and the ID columns in both tables have relationships with the Dim_Pl table, which has columns: ID and Name.
Now, I want to create a matrix where:
Thank you.
I was referring to this table for Table2. This is where you will create the calculated column. Table1 is the other fact table.
No, I mean Table 2 and Tabe 1 is not a table , its is the Matrix CHART I want to create, Table 2 is Matrix CHART that I want to create like this.
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 |
|---|---|
| 97 | |
| 76 | |
| 52 | |
| 51 | |
| 46 |