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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
mellas_k
Helper I
Helper I

How to calculate percentage using the result a of new Measure ?

I have the below table and I need to calculate percentage:

 

 

 Capture.GIF

 

 

To calculate the  8% ;13%;38%;41% you need to calculate (3/39)*100; (5/39)*100 ……

To calculate 30% and 70% you need to calculate (39/129)*100 ; (90/129)*100

For information Mesure is new measure ( Mesure =count (Table[colonne])) so I cannot calculate the Total of a new measure …

Someone please can help me to calculate the percentage that I need?

1 ACCEPTED SOLUTION

@mellas_k

 

Hi, try this:

 

MeasuretoUse =
DIVIDE([Nombre_Consultant],CALCULATE('02 Juin'[Nombre_Consultant], ALL('02 Juin'[STATUT ])))




Lima - Peru

View solution in original post

11 REPLIES 11
ContabilidadBI
Helper III
Helper III

Hi @mellas_k,

 

Have you tried to calculate "Mesure" as a calculated column?

HI @ContabilidadBI

yes , but it not work ...

Can you put the original Table? that looks like a visualization

My original table : 

 

Capture2.GIF

 

And I need to find the result of the percentage shown in my first post .

Mesure = Nombre_consultat 

Thanxs for your help 

Hi,@ContabilidadBI  

 

sorry for disturbance you , but i need to know if there are any proposition.

Thanks 🙂

Hi @mellas_k,

The screenshot is not the resource table, it's still a table visual. You'd better share your resource table by clicking table button(highlighted in red line), post it in a table rather than screenshot. So that we can reproduce your scenario.

Please create a visual using the following formula.

Percentage=SUM(Table[Nombre_Consultant])/CALCULATE(SUM(Table[Nombre_Consultant]),ALLEXCEPT(Table,Table[BU]))


Thanks,
Angelia


hi @v-huizhn-msft ,

Thank’s for your answer , I’m sorry but don’t found how to share my resource table can you please help me ..

And I cannot calculate   SUM(Table[Nombre_Consultant]) because [Nombre_Consultant] it 's a new measure  that i created .

Thanxs .

Hi @mellas_k,

You click the table button highlighted in red line, select the table in right field area.

2.PNG

If you don't mind, you can share your .pbix file in Onedrive and post the link.

Best Regards,
Angelia

hi @v-huizhn-msft

you can find my .pbix file on the below link :

https://1drv.ms/f/s!ArRlhOnGvzHibgygLcRz_xXmAas

 

Thanks for your help.

 

@mellas_k

 

Hi, try this:

 

MeasuretoUse =
DIVIDE([Nombre_Consultant],CALCULATE('02 Juin'[Nombre_Consultant], ALL('02 Juin'[STATUT ])))




Lima - Peru

Hi @Vvelarde

Thanks, it's work 🙂 

thanks for your help:)

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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