Computing totals by summing visible values in DAX

  Рет қаралды 84,908

SQLBI

SQLBI

Күн бұрын

Пікірлер: 62
@cesart4257
@cesart4257 10 ай бұрын
An absolute beast. SQLBI is really the best page out there for DAX. The fact this video was made 3 years ago is also insane. Congrats!
@ilanapregen1684
@ilanapregen1684 3 ай бұрын
i love you. you have helped me so much, not just with this video, but with countless others, teaching me how to do things I NEVER would have figured out on my own. Seriously, blessings upon blessings onto you.
@visheshjjain
@visheshjjain 4 жыл бұрын
I was struggling for 3 days with this and it took me 2 mins after watching this to get what I needed. Thanks!!!
@allejulien645
@allejulien645 2 жыл бұрын
This is probably one of the most usefull tutorial i've ever seen in my entire life, trully
@misaelpadilla7012
@misaelpadilla7012 2 жыл бұрын
I wasted a lot of time trying with summarize and then I found this video, just amazing
@OA-lx2zr
@OA-lx2zr 2 жыл бұрын
This is a life saver video.... Been having a problem with a particular report for days and this just saved me!!!!!!
@arturziolkowski1705
@arturziolkowski1705 2 жыл бұрын
You saved me hours of trials. I'm happy that I found this video.
@jisuskamilov
@jisuskamilov Жыл бұрын
Thanks for the video. I wish I could find this video before 3 days of suffering🙂
@oliveroshea5765
@oliveroshea5765 4 жыл бұрын
Excellent. Thank you Alberto and Marco for posting these videos
@ericet19
@ericet19 4 жыл бұрын
Thank you for this, it solved my problem ! It feels like magic when everything adds up properly. Thanks again.
@mayuranpara4734
@mayuranpara4734 8 ай бұрын
One of the best. Was struggling for couple of days. Thanks a lot.
@Dianamort09
@Dianamort09 11 ай бұрын
Thank you! I was able to figure it out because of this explanation 🎉
@Tastenmann
@Tastenmann 2 жыл бұрын
Great elegant solution to my current issue 👍 Love you guys
@felipesignorellireis7839
@felipesignorellireis7839 4 жыл бұрын
That is exactly what i needed . Thanks Alberto.
@thunderingravi
@thunderingravi 3 жыл бұрын
Thank you so much for the short video... This really helped me to solve my problem
@jessamhan
@jessamhan 4 жыл бұрын
Hi Alberto, in the final expression around the 3:43 mark why is the outer CALCULATE necessary? Both the Sales Amount measure and the COUNTROWS expression are already embedded within one, so the context transition from the SUMX iterator will happen anyway.
@SQLBI
@SQLBI 4 жыл бұрын
True, the outer CALCULATE can be removed in this case. However, the good news is that the outer CALCULATE does not affect performance, it just makes the code more verbose and can be avoided.
@pedrohca
@pedrohca Жыл бұрын
This video is life saving! Thank you so much
@JonatasBeque
@JonatasBeque Жыл бұрын
You saved my day! Thank you so much!
@poorak3
@poorak3 6 ай бұрын
Great video! Helped me a lot. Thank you!
@JonathanCHANAL
@JonathanCHANAL Жыл бұрын
Hi, I feel like the first CALCULATE is not useful here since the context transition is already there (use measure + other CALCULATE). What do you think of this code: COUNTROWS(FILTER('Date', 'Date'[Working Day]="Workday" && [Sales Amount])). Thanks
@HennessysXO
@HennessysXO 4 ай бұрын
What if I want to compute the null values as part of a total , can the measure alternate between both totals when users selects month with values (not null) vs months with values (including null) ?
@sotork
@sotork 6 ай бұрын
Ciao Alberto, huge fan of your work here!...I think the video is repeated in the playlist.
@joaquimcosta952
@joaquimcosta952 4 жыл бұрын
I already knew this calculation, but sometimes I like to review some calculations and I always come to the conclusion that many courses are inspired by your material. It is the path to immortality. I'm just sorry that the number of "LIKES" doesn't reflect the number of views. It is the least we can do to acknowledge the excellent work that Alberto and Marco have been doing for years and that many people have helped. How difficult can it be to make "LIKE" ???
@SQLBI
@SQLBI 4 жыл бұрын
Thanks!!
@yannickfranckum6589
@yannickfranckum6589 4 жыл бұрын
Exactly what I was looking for! Thanks for sharing
@UweSeidel-d1n
@UweSeidel-d1n 5 ай бұрын
Awesome, thanks for sharing!
@lucasgv
@lucasgv 2 жыл бұрын
Salved my life! Thanks a lot!
@goldwhispers
@goldwhispers 2 жыл бұрын
Do you have other videos similar to this, im stuck on a similar'ish problem. I am trying to average a division at the total level but its not working.
@lionels839
@lionels839 Жыл бұрын
Hello Is the standard SUMMARIZE or ADDCOLUMNS + SUMMARIZE technique equivalent?
@SQLBI
@SQLBI Жыл бұрын
It's better to use ADDCOLUMNS+SUMMARIZE - see www.sqlbi.com/articles/best-practices-using-summarize-and-addcolumns/
@growlife4779
@growlife4779 8 ай бұрын
Is there a way to do the following I created a measure to get proportion of sale per entity divided by the total sales across all entities. Then I wanted to create a measure called other that groups all entity sales that are below 3% into one summed up value. using alteryx what you can do is just a formula tool that can write new column called comment and get it to comment other in row if below 2% total sales and then just filter out comment other and sum it to get a one value called other. I was just trying to figure out how to sum of a measure that is not based on values in a table but also another measure? If i can create a calculated column that just pulls in the values when its below 3% I can just sum the column in that table. But as its a measure I cannot use a sum or sumx. I tried to get the measure into a calculated column but it won't let me because the rows have different values and it needs to be one.
4 жыл бұрын
Grazie Maestros!!! Grazie per Tutti !!
@sivamani9752
@sivamani9752 4 жыл бұрын
Super, it would be helpful if you show how sort the columns based on the grand total in the bottom. Eg: left coulum with customer name, top columns are with few sales rep names and in the table it will have each sales reps sales amount for each customer, now i want to sort the sale rep based on the total sales done by each rep( total in the bottom)
@mrgreenteatime
@mrgreenteatime 4 жыл бұрын
For all those people arriving from excel environment I wish you good luck a lot of petience :)
@itskshitijaa
@itskshitijaa 2 жыл бұрын
Hello Sir! This was insightful Thankyou! I however am facing an issue if anyone can help. You see, I have one Measure(Hrs Above Base) where I simply calculate difference between two other measures of the same table (Actual). Now, when the result of difference is negative I want to set it to zero. It is doing exactly this But then the Total seems to be incorrect still. I am iterating on the resources here. Am I missing anything here ?
@emilyamalkin4367
@emilyamalkin4367 Жыл бұрын
Ask your question on Power Bi Community site - you will get an immediate response (or several!)
@atullo1423
@atullo1423 Жыл бұрын
What would the PBI developers be without SQLBI. THANKS A LOOOTT!!!
@lionels839
@lionels839 Жыл бұрын
Hello This formula does not work When you want to average visible values
@NikitaShilyaev
@NikitaShilyaev 9 ай бұрын
but if ever we want to show this table say by weeks, not by months, we should create another measure?
@Kmsbi
@Kmsbi 4 жыл бұрын
Thank you so much for sharing. you are awesome
@1yyymmmddd
@1yyymmmddd 4 ай бұрын
This works with simple data models. Should you have more complex calculations computing data from different tables the issue becomes much more challenging.
@radicholakov9588
@radicholakov9588 3 жыл бұрын
Great video! It really helped me out. However I'm struggling to make it work when trying to iterate on more then one column by using summarize columns. Any tips how to make it work as if in the example placing the year and month in separate columns?
@SQLBI
@SQLBI 3 жыл бұрын
You should iterate the combination of the two columns - it requires an extra step, for this reason a single column with year and date is better (and it works also as hidden column, the user can choose two columns). The simpler, the better (and also the faster): SUMX ( VALUES ( 'Date'[YearMonth] ), ) SUMX ( SUMMARIZE ( 'Date', 'Date'[Year], 'Date'[Month] ), )
@aleksanderstrommer7677
@aleksanderstrommer7677 4 жыл бұрын
I am still waiting the day when I have fun with DAX...
@SQLBI
@SQLBI 4 жыл бұрын
Yes, you could use NOT ISBLANK ( ).
@mathew9665
@mathew9665 4 жыл бұрын
Nice - if you can have sales value of both positive and negative, I would presume your if condition instead of >0 would isnotblank ?
@SQLBI
@SQLBI 4 жыл бұрын
Yes you can use NOT ISBLANK ( )
@emmanuelagbo218
@emmanuelagbo218 Жыл бұрын
Having a date table with the min and max date of the sales table would have prevented this error. Though I learnt something new.
@ExcelandPowerBISinhalen
@ExcelandPowerBISinhalen 4 жыл бұрын
How do you zoom in and out in Power BI?
@SQLBI
@SQLBI 4 жыл бұрын
You can use ZoomIt (free) or GlassBrick screen magnifier (licensed). We use both, depending on the context.
@ExcelandPowerBISinhalen
@ExcelandPowerBISinhalen 4 жыл бұрын
@@SQLBI Amazing Thank you very much.
@oliveroshea5765
@oliveroshea5765 4 жыл бұрын
@@SQLBI more context 😂
@DIGITAL_COOKING
@DIGITAL_COOKING 4 жыл бұрын
@@SQLBI yeah! , there is context for everything 🙂, great video Alberto you give me an idea about calculation i had in the past
@susantakumar8330
@susantakumar8330 4 жыл бұрын
Nice 👍
@dominikreim7723
@dominikreim7723 2 жыл бұрын
Best way is to use a Power Query generated Index column for the Values function
@nazmulalam2046
@nazmulalam2046 4 жыл бұрын
Thanks its helpful
@RichArd-ee2qj
@RichArd-ee2qj 2 жыл бұрын
Ahhhhhh...... Why does this work? I plagiarized the code. It corrected a similar problem I was having. Pax LY = SUMX ( VALUES ( '_Calendar'[Date] ), CALCULATE ( IF ( ISBLANK ( [Pax] ), BLANK (), CALCULATE ( [Pax], SAMEPERIODLASTYEAR ( _Calendar[Date] ) ) ) ) )
@anshulroxx6791
@anshulroxx6791 2 жыл бұрын
But then your measure will only give the correct subtotals for the field defined in DAX VALUE() {Calendar Year Month} If we pull some other columns lets say Department level we will get incorrect totals. Whats your take on this?
@markuzz1982
@markuzz1982 11 ай бұрын
Thanks a lot! Problem solved!
Computing a running total in DAX
5:05
SQLBI
Рет қаралды 72 М.
Why Power BI totals might seem wrong
27:55
SQLBI
Рет қаралды 56 М.
УНО Реверс в Амонг Ас : игра на выбывание
0:19
Фани Хани
Рет қаралды 1,3 МЛН
Какой я клей? | CLEX #shorts
0:59
CLEX
Рет қаралды 1,9 МЛН
Жездуха 41-серия
36:26
Million Show
Рет қаралды 5 МЛН
Row Context in DAX
20:42
SQLBI
Рет қаралды 106 М.
DAX - Percent of Total vs Percent of Grand Total
9:06
Pragmatic Works
Рет қаралды 45 М.
The Excel Tool That Does What PivotTables Can’t (File Included)
13:59
MyOnlineTrainingHub
Рет қаралды 273 М.
Power BI DAX: Running Totals Using Variables, CALCULATE, and FILTER
11:32
How to Fix Incorrect DAX Measure Totals and What Causes Them
7:51
MyOnlineTrainingHub
Рет қаралды 36 М.
Filter Context in DAX
16:03
SQLBI
Рет қаралды 76 М.
How to fix Incorrect Totals in Power BI
14:44
Goodly
Рет қаралды 64 М.
Power BI: How to Write any DAX Measure In Just 3 Easy Steps 👣
24:17
Avi Singh - PowerBIPro
Рет қаралды 41 М.
Satisfying Vend 😦 Ep.5 #shorts #satisfying #vendingmachine
0:23
TYE Arcade
Рет қаралды 17 МЛН
пранк: псих сбежал из дурдома
0:53
Анна Зинкина
Рет қаралды 1,7 МЛН
SH - Anh trai & Em gái || Brother & Sister #shorts
0:58
Su Hao
Рет қаралды 48 МЛН
КОРОЧЕ ГОВОРЯ, НЕДЕЛЯ БЕЗ ТЕЛЕФОНА
3:54
DID YOU NOTICE ANY LAPSES IN THE VIDEO or NOT? / MARGO_FLURY
0:34
MARGO FLURY | Маргарита Дьяченкова
Рет қаралды 12 МЛН
Fake iPhone 14 Pro Max за 10.000 РУБ.
16:00
Wylsacom
Рет қаралды 1 МЛН