cancel
Showing results for
Did you mean:

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a \$100 discount. Register Now

Post Prodigy

## formula help sumif

Hi there ,

i need your a small help pls

i have a table which one name is "Table A" as below , i just would like to calculate on somwhere only "sales group " = C  total somwhere , it should be a measure , could you pls say the formula to calculate pls

1 ACCEPTED SOLUTION
Community Champion

Hi @erhan_79 ,

Try this measure

measure =
CALCULATE(
SUM('Table'[Amount]
)
, 'Table'[Sales Group] = "C"
)

Regards,
Harsh Nathani

Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)

3 REPLIES 3
Community Champion

you don't need any coding, just put in table visuals Amount field and set aggregation

or create a supersimple statement like

``SUM(Table[Amount])``

or, for more complicated data models

``CALCULATE(SUM(Table[Amount]), ALLEXCEPT(Table, Table[Sales Group]) )``

do not hesitate to give a kudo to useful posts and mark solutions as solution
Post Prodigy

Dear @az38

`CALCULATE(SUM(Table[Amount]), ALLEXCEPT(Table, Table[Sales Group]) )`

but when i use like that that measure is calculating based on all sales group , i just need Sales group C 's total because i need to use that totally in another visual

Community Champion

Hi @erhan_79 ,

Try this measure

measure =
CALCULATE(
SUM('Table'[Amount]
)
, 'Table'[Sales Group] = "C"
)

Regards,
Harsh Nathani

Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)

Announcements

#### Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

#### Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

#### Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Top Solution Authors
Top Kudoed Authors