Computing totals by summing visible values in DAX

Computing totals by summing visible values in DAX

SQLBI

3 года назад

73,092 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@pedrohca
@pedrohca - 18.07.2023 14:53

This video is life saving! Thank you so much

Ответить
@jisuskamilov
@jisuskamilov - 03.06.2023 13:59

Thanks for the video. I wish I could find this video before 3 days of suffering🙂

Ответить
@JonathanCHANAL
@JonathanCHANAL - 03.06.2023 08:13

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

Ответить
@lionels839
@lionels839 - 26.05.2023 16:41

Hello
This formula does not work When you want to average visible values

Ответить
@lionels839
@lionels839 - 22.05.2023 03:41

Hello
Is the standard SUMMARIZE or ADDCOLUMNS + SUMMARIZE technique equivalent?

Ответить
@arturziolkowski1705
@arturziolkowski1705 - 01.02.2023 13:27

You saved me hours of trials. I'm happy that I found this video.

Ответить
@misaelpadilla7012
@misaelpadilla7012 - 21.12.2022 23:08

I wasted a lot of time trying with summarize and then I found this video, just amazing

Ответить
@RichArd-ee2qj
@RichArd-ee2qj - 17.12.2022 02:16

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] ) )
)
)
)

Ответить
@itskshitijaa
@itskshitijaa - 25.08.2022 18:56

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 ?

Ответить
@OA-lx2zr
@OA-lx2zr - 24.08.2022 20:24

This is a life saver video.... Been having a problem with a particular report for days and this just saved me!!!!!!

Ответить
@allejulien645
@allejulien645 - 23.08.2022 15:29

This is probably one of the most usefull tutorial i've ever seen in my entire life, trully

Ответить
@danielschmidt4496
@danielschmidt4496 - 03.08.2022 18:11

Great elegant solution to my current issue 👍
Love you guys

Ответить
@dominikreim7723
@dominikreim7723 - 04.07.2022 23:28

Best way is to use a Power Query generated Index column for the Values function

Ответить
@lucasgv
@lucasgv - 04.07.2022 06:11

Salved my life! Thanks a lot!

Ответить
@goldwhispers
@goldwhispers - 21.06.2022 13:21

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.

Ответить
@anshulroxx6791
@anshulroxx6791 - 14.02.2022 11:04

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?

Ответить
@radicholakov9588
@radicholakov9588 - 13.10.2021 14:55

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?

Ответить
@thunderingravi
@thunderingravi - 14.04.2021 19:16

Thank you so much for the short video... This really helped me to solve my problem

Ответить
@ericet19
@ericet19 - 12.02.2021 01:25

Thank you for this, it solved my problem ! It feels like magic when everything adds up properly. Thanks again.

Ответить
@mrgreenteatime2987
@mrgreenteatime2987 - 23.01.2021 17:00

For all those people arriving from excel environment I wish you good luck a lot of petience :)

Ответить
@sivamani9752
@sivamani9752 - 20.11.2020 17:35

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)

Ответить
@joaquimcosta952
@joaquimcosta952 - 15.11.2020 14:57

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" ???

Ответить
@visheshjjain
@visheshjjain - 10.09.2020 12:14

I was struggling for 3 days with this and it took me 2 mins after watching this to get what I needed.
Thanks!!!

Ответить
@graficasdinamicas
@graficasdinamicas - 28.08.2020 07:16

Grazie Maestros!!! Grazie per Tutti !!

Ответить
@yannickfranckum6589
@yannickfranckum6589 - 26.08.2020 21:13

Exactly what I was looking for! Thanks for sharing

Ответить
@aleksanderstrommer7677
@aleksanderstrommer7677 - 26.08.2020 18:38

I am still waiting the day when I have fun with DAX...

Ответить
@mathew9665
@mathew9665 - 26.08.2020 12:44

Nice - if you can have sales value of both positive and negative, I would presume your if condition instead of >0 would isnotblank ?

Ответить
@Kmsbi
@Kmsbi - 26.08.2020 00:21

Thank you so much for sharing. you are awesome

Ответить
@nazmulalam2046
@nazmulalam2046 - 25.08.2020 18:54

Thanks its helpful

Ответить
@oliveroshea5765
@oliveroshea5765 - 25.08.2020 16:28

Excellent. Thank you Alberto and Marco for posting these videos

Ответить
@felipesignorellireis7839
@felipesignorellireis7839 - 25.08.2020 16:18

That is exactly what i needed . Thanks Alberto.

Ответить
@susantakumar8330
@susantakumar8330 - 25.08.2020 14:41

Nice 👍

Ответить
@ExcelandPowerBISinhalen
@ExcelandPowerBISinhalen - 25.08.2020 14:24

How do you zoom in and out in Power BI?

Ответить