This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
I am trying to count nº of rows from a column in Dim_Chamadas table (using a filter) grouping by the columns in the "Summarize" formula. The problem is that it isn't grouping by those columns, it is counting all the rows from the Dim_Chamadas where [1nive] = 'Sale" (Column "teste"). The "Total Quantity" column is indeed grouping however. Can someone help me?
=ADDCOLUMNS ( SUMMARIZE (Fact_Tipificacao,[Produto],Dim_Data[BK_Data],Dim_Vendedor[BK_Vendedor]),"Total Quantity",Calculate(SUM ( Fact_Tipification[Quantity] )),"teste", COUNTROWS( Filter( Dim_Chamadas,Dim_Chamadas[1Nivel] = "Sale")))
RESULT:
Solution:
Ok apparently i had to change the filter in diagram between Dim_Chamadas and Fact_Tipification to Both ways. It was "one way". it is now working.
Solved! Go to Solution.
Hi @Anonymous ,
According to your statement, I think Dim_Chamadas table should have directly relationship with Fact_Tipificacao. This issue should be caused by relationship, like many to many. Here I suggest you to add some filter in "teste" part.
Code should look like as below. You need to replace the Dim_Chamadas[ColumnName] and Fact_Tipificacao[ColumnName] by related column name in both tables.
table =
ADDCOLUMNS (
SUMMARIZE (
Fact_Tipificacao,
[Produto],
Dim_Data[BK_Data],
Dim_Vendedor[BK_Vendedor]
),
"Total Quantity", CALCULATE ( SUM ( Fact_Tipification[Quantity] ) ),
"teste",
COUNTROWS (
FILTER (
Dim_Chamadas,
Dim_Chamadas[ColumnName] = EARLIER ( Fact_Tipificacao[ColumnName] )
&& Dim_Chamadas[1Nivel] = "Sale"
)
)
)
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
According to your statement, I think Dim_Chamadas table should have directly relationship with Fact_Tipificacao. This issue should be caused by relationship, like many to many. Here I suggest you to add some filter in "teste" part.
Code should look like as below. You need to replace the Dim_Chamadas[ColumnName] and Fact_Tipificacao[ColumnName] by related column name in both tables.
table =
ADDCOLUMNS (
SUMMARIZE (
Fact_Tipificacao,
[Produto],
Dim_Data[BK_Data],
Dim_Vendedor[BK_Vendedor]
),
"Total Quantity", CALCULATE ( SUM ( Fact_Tipification[Quantity] ) ),
"teste",
COUNTROWS (
FILTER (
Dim_Chamadas,
Dim_Chamadas[ColumnName] = EARLIER ( Fact_Tipificacao[ColumnName] )
&& Dim_Chamadas[1Nivel] = "Sale"
)
)
)
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
could you pls provide the sample data and the expected result based on the sample data?
Proud to be a Super User!
Check out the May 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 | |
| 28 | |
| 23 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 49 | |
| 47 | |
| 41 | |
| 21 | |
| 19 |