Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
marciomendonca
Frequent Visitor

Summing values across rowns

Good morning, community. I'm having this issue:

marciomendonca_0-1661870626260.png

I have this table that contains productivity goals and I want to be able to sum these goals over the months, kinda like grouping (m1 = 1, m10 = 10, and so on...). But I also want this measure to be fully dynamic, so when one or more months is filtered, the correct goal value is shown.

 

Thank you!

 

Pessoal, bom dia. Possuo esta tabela que contém metas de produtividade de acordo com o respectivo mês e eu quero poder somar essas metas levando em consideração o mês, tipo um agrupamento (somar todos os valores do mês 1, com os valores do mês 2 e assim vai). Mas preciso que essa medida seja completamente dinâmica, dependendo dos meses selecionados, os corretos valores sejam mostrados.

 

Desde já, muito obrigado!

1 ACCEPTED SOLUTION

@marciomendonca 

From your description I can understand that you want to create a measure but from the screenshot I can see a calculated column! Please clarify. Also please share a screenshot of your visual for better understanding. 

View solution in original post

3 REPLIES 3
tamerj1
Super User
Super User

Hi @marciomendonca 

please try

Total Mes =
VAR TotalMes =
    SUMX (
        VALUES ( TableName[Mes] ),
        VALUE ( SUBSTITUTE ( TableName[Mes], "M", "" ) )
    )
RETURN
    M & TotalMes

Unfortunately, it didn't do the trick. But I guess it was my own fault, let me try to explain once again:

marciomendonca_0-1661883474352.png

I have this table and my plan is to have a slicer going from day 01/01 (january 1st) to 31/08 (august 31th), and also buttons to enable the person to select one or more months.

Depending on which month the person select I want to display to exactly productivity goal for the selected months. So, let's assume the month January, February and March were selected, I want it to show the corresponding productivity goal value for these 3 months. 

I kinda figured it out, but the math isn't right. For some specific months, the values didn't match at all and I simply can't discover why.

@marciomendonca 

From your description I can understand that you want to create a measure but from the screenshot I can see a calculated column! Please clarify. Also please share a screenshot of your visual for better understanding. 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.