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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

Je voudrais faire la somme d'une valeur dans une table mais en tenant compte des doublons

dataaa.PNG

Bonjour, j'aimerai faire la somme de mon champs "expected" sauf que là il me donne une mauvaise somme étant donné qu'il compte une seule fois les valeurs de "name" qui se répétent alors qu'il devrait le compter plusieurs fois.

 

J'ai vraiment besoin de votre aide Merci

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

Is the "expected" a measure?

You may consider to modify the measure as below.

expected = 
var _expected = [current expected measure]
var _sum = sumx(allselected('table'),[_expected])

return
if(isinscope([name]),_expected,_sum)

 

Best Regards,

Jay

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous ,

 

Is the "expected" a measure?

You may consider to modify the measure as below.

expected = 
var _expected = [current expected measure]
var _sum = sumx(allselected('table'),[_expected])

return
if(isinscope([name]),_expected,_sum)

 

Best Regards,

Jay

Thank You, i was succesful using your solution

lbendlin
Super User
Super User

Please provide sanitized sample data that fully covers your issue. Paste the data into a table in your post or use one of the file services. Please show the expected outcome.

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.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.