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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
AlexGallet01
Helper IV
Helper IV

Need help for calcul

Hello,

 

I need help for do a calculate in a new measure. I want to calculate a percentage between two result in a table (Montant € & Objectif CA) to do a conditionnal fitness.

 

Thank you

 

1 ACCEPTED SOLUTION
AlexGallet01
Helper IV
Helper IV

Hi,

 

It's ok. I found a solution. I do 2 measures, one for calculate the sum of the Montant € and one for Objectif CA. Next i do calculation between these measurements.

 

Measure 1 -> Somme MT CA/MOIS = CALCULATE(SUM(Factures[Montant €]))

 

Measure 2 -> Somme Obj CA/MOIS = CALCULATE(SUM('Objectifs CA'[Objectif CA]))

 

Measure -> % CA realise = IF([Somme Obj CA/MOIS]<>0;([Somme MT CA/MOIS]/[Somme Obj CA/MOIS]) ;0)

View solution in original post

4 REPLIES 4
AlexGallet01
Helper IV
Helper IV

Hi,

 

It's ok. I found a solution. I do 2 measures, one for calculate the sum of the Montant € and one for Objectif CA. Next i do calculation between these measurements.

 

Measure 1 -> Somme MT CA/MOIS = CALCULATE(SUM(Factures[Montant €]))

 

Measure 2 -> Somme Obj CA/MOIS = CALCULATE(SUM('Objectifs CA'[Objectif CA]))

 

Measure -> % CA realise = IF([Somme Obj CA/MOIS]<>0;([Somme MT CA/MOIS]/[Somme Obj CA/MOIS]) ;0)

v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @AlexGallet01,

 

Would you please share sample data and desired output to illustarte your requirement more clearly? What are the two results you want to consider? And how to calculate the percentage conditionally? Please give more details.

 

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.

Hi @v-yulgu-msft,

 

My calcul is ((Montant € / Objectif CA) * 100)

 

I put you an exemple of my table with an exemple value because it's confidential.

 

Tableau.PNG

 

Regards

Hi @v-yulgu-msft

 

I forgot to tell you the value of Montant € is in table Commande and the value  of Objectif CA is in table Objectif CA so when i want calulate this percentage i have a access problem at data.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.

Users online (880)