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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Lokisame
Helper I
Helper I

Grouping data

Hello, 

 

I need to sum grouping data. For example: 

- I have two months 

- 1st we have 9 000 sales and 10 000 target

- 2nd we have 3 000 sales and 6 000 target

 

wehn I count progression for months it is:

- 1st -  9 000/10 000 = 90%

- 2nd - 3 000/5 000 = 60%

When I look at year I have (9 000+3 000)/(10 000+ 5 000)= 80%, but for the contest i need to left monthly values (90% and 60%) but when I look on year i need to sum this score (0,9+0,6=1,5)

 

I know that i can use calculate for every single month and then just recived resoults - but it is too many measures to do it. I think about way to do it easier. 

Anyone can halp me? I am very begginer in Power BI. 

1 ACCEPTED SOLUTION
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @Lokisame,

 

Please try this measure:

percent =
SUMX (
    VALUES ( TB1[Month] ),
    CALCULATE ( SUM ( TB1[Sales] ) ) / CALCULATE ( SUM ( TB1[traget] ) )
)

1.PNG

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @Lokisame,

 

Please try this measure:

percent =
SUMX (
    VALUES ( TB1[Month] ),
    CALCULATE ( SUM ( TB1[Sales] ) ) / CALCULATE ( SUM ( TB1[traget] ) )
)

1.PNG

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you very much 🙂 It is very simple and useful.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.