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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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

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
apaulso9
Resolver I
Resolver I

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

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... 

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 !

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.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.