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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
renanc
Helper II
Helper II

Calculating Sum with multiple conditions

Hi everybody, I have to calculate the total value of some repairs, but based in some conditons.

For the car plate (colums DescPlaca), I have to check if two checklists were done, [Desmobilização] Entrada Reparo and [Desmobilização] Saída reparo, so, if in DescQuestionario, I have [Desmobilização] Entrada Reparo and [Desmobilização] Saída, I have to sum the value of answer to the question Valor total dos serviços realizados pela oficina (in this case, R$1380,00. And also the answer of Valor total do orçamento enviado ao cliente (R$ 290,00).
How can I build a Dax to check this for hundreds of plates?

In a nuthsell, what are the conditions:
The plate has [Desmobilização] Entrada Reparo and [Desmobilização] Saida Reparo in DescQuestionario Column?
If yes, Sum DescResposta, if DescQuestao is Valor total dos serviços realizados pela oficina. 
It the plate does not have both [Desmobilização} Entrada and Saída Reparo, don't sum.


01.jpg

Thanks for the help.

1 ACCEPTED SOLUTION

Thanks for your help, I menaged to get this done with the help of our former Data Analyst

View solution in original post

2 REPLIES 2
lbendlin
Super User
Super User

Please provide sanitized sample data that fully covers your issue. If you paste the data into a table in your post or use one of the file services it will be easier to assist you. Avoid posting screenshots of your source data if possible.

Please show the expected outcome based on the sample data you provided. Screenshots of the expected outcome are ok.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

Thanks for your help, I menaged to get this done with the help of our former Data Analyst

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.