Power BI % of parent total & % of total in DAX/Power BI

  Рет қаралды 22,392

David Benaim

David Benaim

Күн бұрын

Пікірлер: 29
@erinfield1943
@erinfield1943 7 ай бұрын
0:24- using "Percent of Total", Power BI's UI way 1:05- Calculate the denominator first (the hard part) (measure). CALCULATE([Years on Throne]),ALL('English Monarchs')) 2:20- Numerator divided by Denominator. DIVIDE([Years on Throne],CALCULATE([Years on Throne]),ALL('English Monarchs')))*100 3:40- another way that will work with filters better. DIVIDE([Years on Throne],CALCULATE([Years on Throne],ALLSELECTED('English Monarchs'))
@learnspreadsheets
@learnspreadsheets 7 ай бұрын
Thanks for the measures! Very helpful! Pinning your comment 😃
@decentmendreams
@decentmendreams Жыл бұрын
My brother, bless you . I have struggled for so long to calculate percentages. The last line with hasonevalue was a home run for me . I have tried few other examples but only yours I understood and was able to execute it without a hustle . Now I can go ahead and replace all my percentages with this newly acquired technique.
@learnspreadsheets
@learnspreadsheets Жыл бұрын
Wow that’s such lovely feedback. I really am happy I’m able to explain the formulas as DAX is never that simple. I have a few more videos coming up with some DAX issues that are hard to solve so keep an eye out for them!
@EmileDavis
@EmileDavis Жыл бұрын
Just going to echo the other comments here. I was asked to create a report that does just this. I know how to do this out of the box with excel pivots, but I wasnt sure how to get it done in DAX. Followed your steps, and it worked like a charm. Great explanation of the technique!
@learnspreadsheets
@learnspreadsheets Жыл бұрын
Thanks for the kind words! I’m glad it worked. I know right! It’s so easy with excel pivots but so hard with DAX for some reason!
@JingXiu-vw1gb
@JingXiu-vw1gb 10 ай бұрын
thank you so much! been scouring the internet forever and this is the best!
@learnspreadsheets
@learnspreadsheets 10 ай бұрын
Oh wow! That’s so kind 😃 glad you like it!
@GraceMichaels
@GraceMichaels 9 ай бұрын
Very very helpful and thorough
@learnspreadsheets
@learnspreadsheets 9 ай бұрын
Thanks for the comment!
@yuanzhang9487
@yuanzhang9487 Жыл бұрын
Great video! I want to have a trend chart showing percentage over period. I created a measure of subcategory as period so it works in the matric view I can see each period what the percentage is for certain categorybut I can't manage to get the numbers in trend chart, I was hoping put xis period will work... Do you have any idea how to make it work? Thanks!
@learnspreadsheets
@learnspreadsheets Жыл бұрын
I’m glad you like it! Sorry but I can’t think of a way to make it work that way
@ramadanaltaip
@ramadanaltaip Жыл бұрын
Thank you its huge help 🤩
@learnspreadsheets
@learnspreadsheets Жыл бұрын
No worries! 😃
@gabymichelli1488
@gabymichelli1488 Жыл бұрын
Hello, that's very helpful! Is there a way I can make that as a card for example to show the percentage of an specific category only? When I do it it only shows "100%" as the response. Thanks!
@learnspreadsheets
@learnspreadsheets Жыл бұрын
Good question! The new card visual (which just got released & has to be turned on in options > preview settings) has more capabilities than the original card visual. If you add visual level filters it should help with what you’re trying to do but I cannot know for sure. Hope that helps
@AlexandrePena-z2y
@AlexandrePena-z2y Жыл бұрын
Perfect!!! Thank you
@learnspreadsheets
@learnspreadsheets Жыл бұрын
Glad you like it
@christianjavier1648
@christianjavier1648 Жыл бұрын
amazing....! thanks so much!
@learnspreadsheets
@learnspreadsheets Жыл бұрын
Glad you like it!
@MsIzzat92
@MsIzzat92 Жыл бұрын
Hi, this was really helpful for my end. Just wondering if I would like to concat the subcategory percentage and the monarch, how would the measure looks like? Thank you!
@learnspreadsheets
@learnspreadsheets Жыл бұрын
Hey! Great question. I have another video on concatenating tricks that can be combined with this one
@ChrisWest-v4i
@ChrisWest-v4i 11 ай бұрын
What is the measure [Years on throne]? Also, what is the symbol next to Monarch in the table? I'm getting 100% for every result using the measure % Of Total Subcategory but I'm guessing what Years on throne is so may have something wrong there.
@learnspreadsheets
@learnspreadsheets 10 ай бұрын
Did you try downloading my sample file? That should help, link is in the description
@prathimakumar1119
@prathimakumar1119 Ай бұрын
@@learnspreadsheets hi couldnt find the measure [Years on throne] , can you provide the DAX here?
@pepper_lab
@pepper_lab Жыл бұрын
Great 🎉🎉🎉🎉thanks
@learnspreadsheets
@learnspreadsheets Жыл бұрын
Glad it’s useful!
@taminh1781
@taminh1781 4 ай бұрын
how can i do that with parameter? there are many types of field we want to caculate % of parant total. example i have 3 columns Department, Team, Sub-Team. i use parameter call "Team parameter" to select which field to show between: Team or Sub-Team and now how can i create table with Department 100% and Team or Sub-team show percent of parent Department base on parameter "Team parameter"
@learnspreadsheets
@learnspreadsheets 3 ай бұрын
Hi thanks for the question. It’s difficult to answer here I’m afraid, I’d recommend finding a power bi forum where you can upload pictures & a sample file even, to get a good reply
Understanding CALCULATE in DAX: Percentage of Total
13:54
BI Gorilla
Рет қаралды 33 М.
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
Top 5 DAX Functions that Every Power BI Beginner Must Learn! 📊
14:53
Avi Singh - PowerBIPro
Рет қаралды 15 М.
How To Calculate Percentages In A Hierarchical Form In Power BI
13:03
Enterprise DNA
Рет қаралды 15 М.
Master Power BI Essentials in Just 15 minutes
14:16
Kenji Explains
Рет қаралды 720 М.
DAX for Power BI Part 6.4 - Opening and Closing Balance Calculations
44:53
How to fix Incorrect Totals in Power BI
14:44
Goodly
Рет қаралды 64 М.
DAX - Percent of Total vs Percent of Grand Total
9:06
Pragmatic Works
Рет қаралды 45 М.
📊 How to use Power BI DAX - Tutorial
37:28
Kevin Stratvert
Рет қаралды 1,2 МЛН
Introducing CALCULATE in DAX
13:57
SQLBI
Рет қаралды 85 М.