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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
RPNancy54
Helper I
Helper I

Hello, i need help. I want this (blue)

Hello,

 

I need help please. I don't speak very good english (i'm French).

I have BLUE answer with DAX.

 

Capture.JPG

 

Thank you so much

1 ACCEPTED SOLUTION
Anonymous
Not applicable

It looks as though Repartation is a measure for you. This means you can do what I said above to make a second measure but your code would be:

Echantillion = Round(Repartition*21,0

Or you can create a new column on your data table and make it:

Echantillion =Round(Repartition*21, 0) ---this will return a mesure that would show what you want once you drag it onto the table visual.

 

View solution in original post

11 REPLIES 11
Anonymous
Not applicable

Hello,

 

Create a new measure that used the column Repartation. Here is what I wrote

Echantillion = Round(SUM('Table'[Repartition])*21,0
then use your measure on the table to get:
comment.PNG
If repartition is a measure then you will not need to sum it.

Nb Echantillon = ROUNDUP([Nb Conforme DAP]*0.1,0)

Hello,

 

Can you help me ? please.

 

Have a nice day.

Thank you so much

But If i change 21 -> [Nb Echantillon], the result is not OK. It's strange 🤔

Can you help me ?

Capture.JPG

Anonymous
Not applicable

Is Nb Echantillion a column being summed or a measure? Please share the code if it has any. It is strange that the total is 21 even though the column olny adds up to 16 in the picture. I would try remaking the tabler from scratch AND checking to make sure that 'Nb Echantillion' is being used as a whole number of 21. There is a chance that 'Nb Echantillion' is being split by the architecture type. 

Bonjour,

 

Ci joint l'accés au fichier source. Par avance, merci beaucoup.

 

A bientot.

 

https://pmbsoftware-my.sharepoint.com/:u:/g/personal/rafael_pedregal_nrjdiags_fr/EQ75f2P58qlFsuXFYpv... 

Anonymous
Not applicable

The problem is that the Echantillon mini multiplies by the categories Echantillion. See below for what I mean:

sample 1.PNGsample 2.PNG

You can see for each type it is using the Echantillion for that category to multiply by. You want to multiply by the total. I will play around with the code and get back to you!

OK, super. Merci beaucoup !

Anonymous
Not applicable

Okay. To make the count fixed for all categories use this code:

 

Nb Echantillon = Roundup(CALCULATE([Nb Conforme DAP], ALL(Planning[Architecture]))*.1,0)
 
This means the Nb Echantillion number will be used for all Architecture categories. 
 

Thank you so much.

It's OK.

Anonymous
Not applicable

It looks as though Repartation is a measure for you. This means you can do what I said above to make a second measure but your code would be:

Echantillion = Round(Repartition*21,0

Or you can create a new column on your data table and make it:

Echantillion =Round(Repartition*21, 0) ---this will return a mesure that would show what you want once you drag it onto the table visual.

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.

Top Solution Authors
Top Kudoed Authors