cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
erhan_79
Post Prodigy
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 

 

thanks in advance Capture-8.JPG

1 ACCEPTED SOLUTION

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)

View solution in original post

3 REPLIES 3
az38
Community Champion
Community Champion

Hi @erhan_79 

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
LinkedIn

Dear @az38 

 

Thanks for your repy , used your formula as below 

 

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  

 

Capture-9.JPG

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)

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors