Hey, thankyou so much I had been struggling with this issue since a week now. I tired so hard finding for the solution but nothing worked. You came to the rescue. Thank you so much again.
@CurbalEN2 жыл бұрын
My pleasure!
@swatisneh20123 жыл бұрын
When I nowhere find solution for my problem, you are the only one who solves it in one go with clear picture. Thanks ma’am!! It’s wonderful learning from you.
@CurbalEN3 жыл бұрын
At your service!
@scottemiller45013 жыл бұрын
Thank you! A simple elegant explanation of what, why & How to fix it! Keep up the great work
@CurbalEN3 жыл бұрын
Thanks!
@FlareSoul695 жыл бұрын
OMG!! Thank you so much!!! It took me 3 days... and couldn't figure it out! You're such a blessing!!!
@CurbalEN5 жыл бұрын
Glad it worked! /Ruth
@gkakun6 жыл бұрын
Brilliant!!! You just solved me a problem I'm dealing with for 2 years!
@CurbalEN6 жыл бұрын
Excellent ! Glad it was useful! /Ruth
@lovenisarg Жыл бұрын
Thank you for such a lovely explanation. Kudos to you. This helped me a lot. Earlier I always used to create new column in the table and get the totals right in matrix but now I have much more clarity how to do it for measures thanks to you I just now implemented this in my recently developed rpeort and removed the calculated column an dthis change worked perfectly. Thanks once again for such lovely video.
@sansden4 жыл бұрын
Thank You Ruth ....Your tutorial are always a savor for my problems ...Love it ..
@CurbalEN4 жыл бұрын
Glad to hear!
@ashwinmanickam4 жыл бұрын
Thank you so much!!!! You are a blessing to the power bi community! i have been breaking my head over this for quite sometime!
@CurbalEN4 жыл бұрын
Glad it work!!
@SonNguyen-zj1gj4 жыл бұрын
Tks alot, your solution can solve my year of headache .
@abhijeetghosh27 Жыл бұрын
Thank you @Ruth ! You and your videos are just amazing. 😀👍Once again it saved my day. Thank you ! 💗😊
@efrainmartinez44657 жыл бұрын
Further than to learning Dax language, I have improved my English. Thanks Ruth!
@CurbalEN7 жыл бұрын
Yes! Double benefits!! Really happy to be able to contribute :) /Ruth
@slowchrno2 жыл бұрын
Tks a lot for this Ruth. Started using and learning PBI in the last couple of months and your videos have helped a lot. I'm trying to do a contribution margin variance analysis and the SUMX DAX were giving me hell. I was triying a lot of different stuff with SUMMARIZE and GROUPBY but was getting nowhere. I think with this I finally got the last piece of the puzzle. Thanks again!
@MrMattDickens2 жыл бұрын
This saved me so much time. I hope $5 was ok. I think your work is amazing.
@wozniakken3 жыл бұрын
This is amazing, thank you so much for making these. This is the only video that actually makes sense. I did it and it worked!!!!!!!!!!!
@CurbalEN3 жыл бұрын
Great!!🥳🥳
@MrMattDickens2 жыл бұрын
Thanks!
@CurbalEN2 жыл бұрын
And super thanks back 😊 !!
@nashiki47923 жыл бұрын
Thank you so much. One’s more you saved my report :D
@KimberleyCanoute3 жыл бұрын
Thank you so much for this!!! Really appreciated as this solution helped me fix a big problem with critical BI report I had to submit this week.
@CurbalEN3 жыл бұрын
Well done!!
@gregschalk50954 жыл бұрын
Awesome! Love Dax Fridays! I always learn something new
@CurbalEN4 жыл бұрын
Me too :) /Ruth
@arubeirubu3 жыл бұрын
Wow this help me a Lot, great explanation. Greetings from El Salvador.
@darlenesoukhaphonh84376 жыл бұрын
This really helped! Easy to follow along, and you explained it so well.
@CurbalEN6 жыл бұрын
Yey!! Thanks for the feedback! /Ruth
@imranayasmin6549 Жыл бұрын
Thank you so much. It helped me solve my table summary total at my work. 🙂
@markstanfill8 жыл бұрын
Thanks very much for the personalized instruction! :) Your explanation helps. I think this underscores how careful you have to be with data validation. I'm going to make sure that I test any summary columns against both a full data set and filtered values from now on to look for this class of errors. Cheers!
@CurbalEN8 жыл бұрын
+Mark Stanfill You are most welcome :) You are right, creating the measure is one thing but validating is everything! 🤓 Have a great weekend! /Ruth
@saibigdata40467 жыл бұрын
Hi Ruth, Thank you so much for such elaborated explanations
@CurbalEN7 жыл бұрын
+Sai Bigdata Hi Sai, you welcome! :) /Ruth
@fraserjewing5 жыл бұрын
Perfect. I was working on solving this for the last 2 days. Popped in your formula and bingo, its working.
@CurbalEN5 жыл бұрын
It is rare that happens, but hey! Who is complaining? ;) /Ruth
@gildardorojasmartinez74334 жыл бұрын
Thank you so much you saved my life 😊. all the way from Mex...
@Rrabbit_swim3 жыл бұрын
Thanks Ruth :), I have a great story about this. One day a friend came to me and say we have 100% participation rate in an exercise. We were all excited until we saw that the total didn't add up. We left class after sad
@CurbalEN3 жыл бұрын
But you were smart to know that 100% was probably too good to be true. True testament of data literacy ;)
@vineetyoutubr56 жыл бұрын
Very helpful video Ruth.. I was facing the same issue with my utilisation file. Now it's been fixed 😁
@CurbalEN6 жыл бұрын
Yey!!! Excellent :) /Ruth
@SmartBimson8 жыл бұрын
It's really interesting and it's awesome that you do personalized videos 👍🏻 greetings from my vacation ☀☀☀
@CurbalEN8 жыл бұрын
+SmartBimson Checking DAX videos on your holidays? Close your computer and enjoy your time! 🏖 /Ruth
@SmartBimson8 жыл бұрын
Curbal I Did Ruth, but today I'm already looking forward a new Dax Friday ! Have a great day and thanks a lot for all your effort ! Hasta luego 😉🌞
@CurbalEN8 жыл бұрын
+SmartBimson The video is up and ready to go later this afternoon, hope you will enjoy it ! /Ruth
@opod843 жыл бұрын
Thank you for the explanation! This helped me out of a bind!
@caro18534 жыл бұрын
You were my salvation... THANK YOU!!
@CurbalEN4 жыл бұрын
My pleasure!
@EricaDyson5 жыл бұрын
Brilliant. The only explanation that I actually understood! I had a workaround.. now I don't need it!
@CurbalEN5 жыл бұрын
🥳 /Ruth
@sauravsinha6939 Жыл бұрын
what if there was a matrix with product category and sub catergory and other more in the matrix and they all showing sales amount there we cannot use hasonefilter. Please suggest that too
@EminUzunN8 жыл бұрын
Nice Tip. Thanks Ruth.
@CurbalEN8 жыл бұрын
+Emin Uzun You welcome admin, have a nice weekend, /Ruth
@tanorniang38882 жыл бұрын
Very amazing!!! Thank a lot
@ellukayou4 жыл бұрын
If I, out the pdructs names in the midle table, can i use it for the fliters?
@janfranck53466 жыл бұрын
Very nice, Thank you Ruth :)
@CurbalEN6 жыл бұрын
Hi Jan! Some are really cool right? /Ruth
@musab20253 жыл бұрын
Life saver!! You are awesome!
@felipebizarre3 жыл бұрын
any way of doing the right total amount but instead of adding it subtracts? this has been so helpful so thanks so much !
@MrRagerrrr77772 жыл бұрын
hi there! what if youre using a matrix table and you have 3 fields in the row? how would you use hasonevalue when you have multiple row fields in a matrix table? my problem is the row level total is correct but the grand total is incorrect. Please help thanks!
@HabariYaMere5 жыл бұрын
Thanks Ruth! very helpful and this has worked for me before on measure but not I have a measure that takes the max of a value and when I try to wrap it in the if statement I either get the max value or a wildly high number. here's the latest attempt which just gives me the max of the 5 distinct 'Project Total amount' values Amount = if ( HASONEVALUE('Project Listing'[ Project List.Practicearea]), [Project Total Amount], SUMX(values('Project Listing'[Project List.Practicearea]), [Project Total Amount])) the project total amount measure is just Project Total Amount = MAX(Header[ProjectTotalAmount])
@CurbalEN5 жыл бұрын
Hi Meredith, could you ask in the Power bi Community? Thanks! /Ruth
@stephanethia4 жыл бұрын
Hi, i don't understand why in the Tot Amount column, some rows are empty (because of stock table filter as you said). I wanted to see the Pbix data to understand, but, on the download center, we find all pbix, but not for this one :p ... thank you for all your tutorial. very helpfull
@sapbo22136 жыл бұрын
Hello Ruth,Thanks for this useful video //Vicky
@CurbalEN6 жыл бұрын
You welcome Vicky! /Ruth
@KanhaiyaLal-ze3ri2 жыл бұрын
Hi how to calculate columns Grand total value with two table.
@mdrams40274 жыл бұрын
useful, thank you!
@sisuchi183 жыл бұрын
Just a quick question :) Are you sure the HASONEVALUE() is needed? It seems to also work when using Right total amount = SUMX( VALUES( StockTable[ProductName]) , [Tot Amount] ) . Considering that SUMX() goes through each row of the table to calculate its outcome, the HASONEVALUE might not be needed. Would love to hear what you think.
@cedricgacond19906 жыл бұрын
Hello Ruth, Unfortunalty it doesn't work if we are trying to add the of numbers of days that are between two dates. Do you have an idea on how this can be done?
@burmaabugii40204 жыл бұрын
thank you so much
@DanielWeikert6 жыл бұрын
Hi Ruth, one question you might help me with. In advanced Dax if often encounter wrong totals. I have to work with virtual tables to correct them. What I would like to know is if there is a certain rule which tells me in advance whether the totals will be wrong? Do you know that? Thanks and have a great weekend
@bryancajavilcavinces71246 жыл бұрын
Hi ruth, do you have an idea for how to remove the total (in a matrix) for just a specific column? I have a matrix with 6 columns, one of this is the "per salary" and in the total appears the sum of this column, i want to hide or remove the total for just this column. Thanks
@karthikapethurajan66154 жыл бұрын
Thank you thank you thank you sooo much!!!!!!!!🤩
@mahindrabisram29235 жыл бұрын
Thank you for this informative video. Can you enhance this to show how to make this generic so it will work for any dimension column being used for filtering?
@CurbalEN5 жыл бұрын
How things are calculated depends highly on how the model looks like. If it is possible to do, I don’t know how to. Check in the power community, maybe somebody there knows! /Ruth
@jimmyni19835 жыл бұрын
Hi @Mahindra, I think your scenario also can be resolved using similar I replied to @Aonline. You just have to replace by your own dimension filters / slicer.
@aonline-training5 жыл бұрын
Hi, Thanks for the video, has been very helpful. I got stuck at 1 place, when I have a slicer, which affects the result, then again the total appear's incorrect. can you help with that regards?
@CurbalEN5 жыл бұрын
Hi, can you please contact the Power bi Community for support? Thanks, /Ruth
@jimmyni19835 жыл бұрын
Hey @Aonline. Maybe this can help you... I have a matrix with Disconnected Clients table in rows and a Slicer called User from original fact table (so, native from fact table). Basically I have created some VARs and two of them are Calculation when I do not have Users filtered and the other one is to bring me the correct result when I have Clients naturally filtered in the matrix and also when I have one or more values selected in User Slicer.
@jimmyni19835 жыл бұрын
Try to understand my measure: Total Horas Realizadas por Cliente e Usuário = VAR _RemoveClientes = ALL ( TS[Cliente] ) VAR _RemoveUsuario = ALL ( TS[Nome] ) VAR _Cliente = SELECTEDVALUE ( Clientes_Disconectados[Clientes] ) VAR _Usuario = ALLSELECTED ( TS[Nome] ) VAR _Calc = CALCULATE ( [Total Horas Realizadas]; _RemoveClientes; _RemoveUsuario; FILTER ( TS; TS[Cliente] = _Cliente ); FILTER ( TS; TS[Nome] IN _Usuario ) ) VAR _CalcFilteredUser = CALCULATE ( [Total Horas Realizadas]; FILTER ( TS; TS[Nome] IN _Usuario ) ) RETURN IF ( HASONEVALUE ( Clientes_Disconectados[Clientes] ); _Calc; _CalcFilteredUser )
@jimmyni19835 жыл бұрын
In case you need to know about [Total Horas Realizadas]: Total Horas Realizadas = SUMX( TS; TS[Horas] )
@anuragbawankar6852 жыл бұрын
Thank you!!!
@jacquelinehu917 жыл бұрын
First, thanks a lot for this video. I tried this way to solve the wrong total for a thousands lines table and it makes updating the data very slow.
@raultorvisco24067 жыл бұрын
HI Ruth: I was diving in your file and a doubt came me up. Checking your queries I realized that there are some productNames present in "Stock Table" (E.g. "Clothing"), but not present in "Manufact Table". Additionally you have created "Both Filtered directions relationships", which is not usual. My question is, What should you do if you want to show all product names with all stock values and all manufacturing values?, -Should you create a new Table combining unique values from these two tables (Appending) and then relate with the aforementioned tables (instead of ProductID Table)? -Once created, should you pick up the Product Name from this new table if you decide to use single filtering direction?, selecting both filtering direction, it won't be a big deal. This is a real and common Many to Many case you can find in a real organization. Am I right in my reasonning? Thanks for the answer in advance.
@CurbalEN7 жыл бұрын
Hi again :) Did I create the both relationship or was it there by default? Power BI did that in the beginning. I think tomorrow’s DAX Fridays! Video will or might answer your question, stay tuned :) /Ruth
@raultorvisco24067 жыл бұрын
Great, I will!
@CurbalEN7 жыл бұрын
I have to record the video again due to poor sound quality. I will try to do it in the weekend :)
@raultorvisco24067 жыл бұрын
Hi Ruth Ok, take your time. In the meantime I was re-watching your videos about relationships... really helpful, but still having some doubts about this. Thank you for your patience.
@CurbalEN7 жыл бұрын
Thanks for your patience :) /Ruth
@ankitamalhotra57615 жыл бұрын
Hi Ruth, I am facing the wrong totals for negatives, its showing the 0 for the negatives values, will this help in that case? thanks
@CurbalEN5 жыл бұрын
Hi Ankita, Hard to tell without the details, post in the power bi community to get help: m.kzbin.info/www/bejne/pYmpgJiYqtuFsJI /Ruth
@bailjr3 жыл бұрын
Can you please do one where the totals are correct, but the amounts in the columns are incorrect.
@guusvanzuylen65016 жыл бұрын
Hi Ruth, How aboub this: Ta2 = CALCULATE(SUM(ManufactTable[Amount]), StockTable)
@CurbalEN6 жыл бұрын
Thanks! :) /Ruth
@lenzypetty10976 жыл бұрын
Nice approach approach. Works great in this instance. Not sure if any limitations, but works very good here. Also, you can also just do a left join in Query Editor, and avoid the situation all together.
@CurbalEN6 жыл бұрын
With bigger models , joining tables is not an option, that is why I showed this trick :) /Ruth
@nelgarmartinez59794 жыл бұрын
what if I have just one database with one column (Units) and other one with two Categories (Sales / Fcst), I need to calculate the ABS variance, but the total is incorrect. How can a fix that?
@raultorvisco24067 жыл бұрын
HI Ruth: The link to PowerBi file doesn't work. This message appears instead : " Sorry, the page you are looking for is not found". Could you please reupload the file?
@CurbalEN7 жыл бұрын
Hi Raul, here is the new link: gofile.me/2kEOD/MD487TiUq /Ruth
@raultorvisco24067 жыл бұрын
Hi Ruth, thanks! File downloaded.
@CurbalEN7 жыл бұрын
Excellent! /Ruth
@weslleyhenrique29898 жыл бұрын
Very Good!
@CurbalEN8 жыл бұрын
+Weslley Henrique Thanks Weslley!! Appreciate the feedback! 😊 /Ruth
@mazarata734 жыл бұрын
Thanks a lot for this. It's great it works. Let me share a tought I have. My understanding is, that VALUES(ProductName) returns a list of unique values found in that column under the valid filter context. Since there is no filter context on the level of the "Total", that list should be again the complete list of unique values found on the column "ProductName". Where is my knot? Thanks and regards.
@kingofhearts67023 жыл бұрын
@Curbal, I have the same doubt, pls can you help
@riazahmedshaik4 жыл бұрын
What if add another dimension? how to fix it? Please help me
@rajeshkhanna87094 жыл бұрын
Hi Can you please share sample dataset, so that i will practice once
@CurbalEN4 жыл бұрын
All my datasets are available in the download center :)
@rajeshkhanna87094 жыл бұрын
@@CurbalEN except this one
@CurbalEN4 жыл бұрын
Then I I am.afraid I dont have it :(
@Simon-vc1wk2 жыл бұрын
If you have to correct measures by using IsInScope or HasOneValue it's creating a problem in itself. As we would need to do that for all possible permutations of a table that a user of your report could create their own visuals from your model once published, which is dangerous. MS should fix Measure Totals issues in PBI.
@abhishekpandey91865 жыл бұрын
What if the dimension to be used is not defined, anyone can use any dimension here , so what should we use with the haso evalue, iffiltered or hasonefilter.
@valiabis Жыл бұрын
Hello. Can i have this for the below measure? =if(sum('Earnings Table'[Revenue])>10000,sum('Earnings Table'[Revenue]))
@hafizakhairalubna51833 жыл бұрын
Hello Ruth, I've problem with my dax formula, column totals are not equal to monthly total Forecast1 = if( CALCULATE(sum('dbprojects tbl_t_project_impact'[actual]))=0, SUMX('dbprojects tbl_t_project_impact',CALCULATE(SUM('dbprojects tbl_t_project_impact'[plan]))), sumx(values('dbprojects tbl_t_project_impact'),CALCULATE(SUM('dbprojects tbl_t_project_impact'[actual])) ))
@ahmedal-dossary43865 жыл бұрын
Impressive, this is a cool video. Do you have a video on consolidation and elimination when dealing with financial statement? If you happen to have a parent company that has many subsidiaries and you want to remove inter-company transactions at the corporate level. That would be an interesting topic. Thanks!
@CurbalEN5 жыл бұрын
Nothing on financial statements so far, but it is on my list :) /Ruth
@ahmedal-dossary43865 жыл бұрын
Looking forward to it.
@kellyeaster31635 жыл бұрын
Thank you!
@CurbalEN5 жыл бұрын
You welcome! /Ruth
@raghuram35075 жыл бұрын
why grand toal in MTD of dax always shows last value rather than total?any idea...
@CurbalEN5 жыл бұрын
Check this video to see if it solves your problem: m.kzbin.info/www/bejne/q5ergIKCmc6SoM0 /Ruth
@raghuram35075 жыл бұрын
thank u for your quick reply... i have gone thorugh the link ,here it solves for grand total for functions like sum ,avg.but when i am using TotalMTD the subtotal at year is showing value of last month of that year instead of sum of all years...can you please help why it calculates like that
@raghuram35075 жыл бұрын
@@CurbalEN one small correction in above comment... it doesn't show sum of all months in the year at year subtotal
@vinayakvnair57295 жыл бұрын
you made my day!!
@CurbalEN5 жыл бұрын
🥳 /Ruth
@mathijs93657 жыл бұрын
U could do a sumx with the table Value(stocktable[productname])
@CurbalEN7 жыл бұрын
+Mathijs Thanks Mathiijs! Have a great evening! /Ruth
@lifeisstr4nge7 жыл бұрын
I don't get it. Why even create measures for shit like this if you can add the item and sum it? Could someone explain this to me?
@weslleyhenrique29898 жыл бұрын
Can I use ALLSELECTED instead of VALUES ?
@CurbalEN8 жыл бұрын
+Weslley Henrique You can download the file and try it yourself to see what happens 😉 /Ruth
@changeyourmind-p1n Жыл бұрын
Great
@mis59955 жыл бұрын
Hi, This is not working for me, can you please help me out. I am using below DAX. Less than 30 Days $ = IF(HASONEVALUE('Ageing Detail'[Branch]), DIVIDE( SUM('Ageing Detail'[Less than 30 Days]), AVERAGE('Ageing Detail'[ROE]) ), SUMX(VALUES('Ageing Detail'[Branch]), DIVIDE( SUM('Ageing Detail'[Less than 30 Days]), AVERAGE('Ageing Detail'[ROE]) )))