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
VictorMontiel
New Member

Obtain percentage of different tables from a table of totals

Hello all,

I am working on setting up some KPIs for my team to show in the organization.
I have obtained my data from 2 excel files one for incidents caused by changes, other one is a raw file of changes created on the year.

from these 2 files I was able to obtain the 6 different visualization tables, Primary visualization table is "Approved changes"and what I want is to be able to obtain the percentage of other tables related to the total showed in my primary table.

 

Primary visualization table, total approved changes in the year is 3174

VictorMontiel_0-1600444987131.png

 

So for example, I have this another table, called Standard changes which is a subtype obtained from the change file.

VictorMontiel_1-1600445032871.png

 

so the question is, how can I calculate the percentage of each month's and also for total of standard changes against Approved changes from primary visualization table.  example of the total would be: 1947/3174*100 = 61%

 

thanks!

Victor.

 

2 ACCEPTED SOLUTIONS
Pragati11
Super User
Super User

Hello @VictorMontiel ,

Is there a reality between these two tables?

Thank you

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

View solution in original post

HI @VictorMontiel ,

 

As you have got relationship between these 2 tables, you can create a caluclation somehting like below:

Measure = DIVIDE(SUM(TBALE1[ApprovedChnages]), SUM(Table2[Standard]), 0)

 

Replace your tablenames and column names in above dax.

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

View solution in original post

5 REPLIES 5
Pragati11
Super User
Super User

Hello @VictorMontiel ,

Is there a reality between these two tables?

Thank you

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Hi, Pragati. I made a relationship on business service field, so I could add a filter at the top.

 

VictorMontiel_0-1600445665444.png

 

here's how it all looks.

VictorMontiel_1-1600445694660.png

best.

Hi @VictorMontiel ,


Is Pragati11's answer helpful?  If it is, kindly accept it as a solution. More people will benefit from this thread. If you are still confused about it, please share more details to us.  Thanks!

 

 

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

HI @VictorMontiel ,

 

As you have got relationship between these 2 tables, you can create a caluclation somehting like below:

Measure = DIVIDE(SUM(TBALE1[ApprovedChnages]), SUM(Table2[Standard]), 0)

 

Replace your tablenames and column names in above dax.

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

thanks, Pragati.

your suggestion helped me to find a way to put all the info in a single table.
what I did was to create additional columns per each KPI I want to show, with values 1, 0 post that I was able to put them all together in a single table with their respective percentages.

here's how it looks.

VictorMontiel_0-1601474007649.png

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.