I searched for about a week before i stumbled upon this video which solved my problem to the letter. Tnx a bundle
@mehdihammadi61456 жыл бұрын
Thank you Ruth, this is a very interesting use of the MAXX function
@CurbalEN6 жыл бұрын
Isn’t it? And extremely useful :) Happy Friday! /Ruth
@Victor-ol1lo6 жыл бұрын
Super function ... and as I learnt recently can also deliver text values within measures.... Thanks for sharing and have a nice weekend !!!
@CurbalEN6 жыл бұрын
Same to you :D /Ruth
@sgk19666 жыл бұрын
Thank you. I was doing it in power query. But never knew we could do it in DAX and it is simple. Thank you once again for sharing knowledge.
@CurbalEN6 жыл бұрын
To be fair, i didnt know either until I run into a case where I had to do it in DAX and I thought it would be useful to others too :) Happy Friday ! /Ruth
@MrPapeBoubacar6 жыл бұрын
fantastic! A couple of weeks ago, I was facing a similar data transformation issue. I had to export a ledger to Excel and with a complex combination of countif and offset , I was able to fix the problem. This looks way easier. I will give it a try. Thanks!!
@CurbalEN6 жыл бұрын
It definitely is :) Happy Friday!! /Ruth
@tonyandlisab2 жыл бұрын
Love it - just what I was after. Thanks Curbal
@CurbalEN2 жыл бұрын
Music to my ears :)
@nicoymartina3 жыл бұрын
Thank you, Ruth!
@tanababa6 жыл бұрын
Thank you Ruth. Great example. However, I I don't understand why it actually works. In time stamp 05:38, you describe the equal expression which seems strange to me. Wouldn't it compare the current row value of product ID to the whole column each time? How does the Dax "knows" to check only for the same product ID?
@CurbalEN6 жыл бұрын
I explained that poorly... I saw it when I was editing, but didn’t have time to redo it. Have to do it again... /Ruth
@tanababa6 жыл бұрын
Looking forward to it :-)
@CurbalEN6 жыл бұрын
I will do a Quick update on Tuesday!
@tonyandlisab2 жыл бұрын
Hi Ruth, just trying this and as a measure it works but I'm failing miserably when trying it on a calculated column (returns a blank column). Is there something obvious I forgot to do? ❤
@AravindanM936 жыл бұрын
Hi Ruth we have an issue, we have a live connection connected to. When the user opens the report the user should see by default the data of today's and the should be able move backward also. We have used between slicer. The problem is we aren't able to set the slicer to current date.
@CurbalEN6 жыл бұрын
You should be able to do it, can you post the question in the power bi community? Thanks! /Ruth
@andrewrender2 жыл бұрын
What do you do if you don't have a 'prodno, column to reference? Ie just a unique list of dates and then old lines missing on the country column?
@andrecavasotero62346 жыл бұрын
Great. I did not know this utility of the MAXX function. Thanks for sharing.
@CurbalEN6 жыл бұрын
You welcome and happy Friday! :) /Ruth
@sobsawats.91096 жыл бұрын
Thank you. Good trick. I have another idea to solve this problem by using column like ColumnFillDown = CALCULATE(MAX(tbl1[Country]),FILTER(tbl1,tbl1[ProdNo]=EARLIER(tbl1[ProdNo]))) Any disadvantage on this? performance? Please kindly comment. Thank you.
@CurbalEN6 жыл бұрын
Try them both in DAX studio and let us know ;) /Ruth
@sobsawats.91096 жыл бұрын
Thanks, I never used DAX studio. will try.
@CurbalEN6 жыл бұрын
Oh sorry! Maybe this video will help answer your question a bit: m.kzbin.info/www/bejne/iZ67fZp7fb2GfcU But keep in mind that performance is highly dependent on how your model and data looks like. That is why you need to test it in your own model. /Ruth
@sobsawats.91096 жыл бұрын
Curbal Thanks again. I’ve got your point.
@maxivy32992 жыл бұрын
This formula works with numbers which is even better
@sahuanalogchannel2 жыл бұрын
Hi Ma'am, what happened if we have two country value for same product id. Will this work or not?
@rassten6 жыл бұрын
That was a really good feature, I would normally have used Excel, but you can not do it with big data. Now that Power week is done, what should we do on Tuesday and Thursday next week, you spoil us???
@CurbalEN6 жыл бұрын
I am posting my new channel intro on Tuesday, so you will get 4 videos next week! So you detox slowly 😂😂😂 Happy Friday! /Ruth
@michaelm195ooo4 жыл бұрын
Hi, how can I add another condition if there is Product # 7040357 in Germany and Italy?
6 жыл бұрын
¡Tremendo!
@CurbalEN6 жыл бұрын
Gracias! /Ruth
@selenevera88345 жыл бұрын
Thank you. This is amazing ; )
@CurbalEN5 жыл бұрын
And thanks for the feedback!! /Ruth
@pratikfutane81316 жыл бұрын
Fantastic
@CurbalEN6 жыл бұрын
Thanks! /Ruth
@sbn48622 жыл бұрын
Evry 10 or 15 days we change currensy, I have one table with currency and second one is Datetable. PowerQuery combines and fills down very easily. But DAX can't do it no MAXX no Summrise no Calculate and calculattable can't help and Varables too. I must do it in calculating table not measure. Can you help me Please
@Unbox7473 жыл бұрын
Thanks this solved a big problem for me. Who would have know you can apply a MAX function to a column of text. 😮
@CurbalEN3 жыл бұрын
Right? 🤷♀️
@shashikanthbasuthkar956 жыл бұрын
That's really good How to calculate condition column from multiple tables Example: Sum(case when (Table1.Column1="D" AND Table2.Column1="20" AND Table3.Column="New" THEN (Table4.SalesAmount)*(Table4.Parcent) * -1 when (Table1.Column1="R" AND Table2.Column1="20" AND Table3.Column="Ren" THEN (Table4.SalesAmount)*(Table4.Parcent) Please make a video for this colculation my Humble request
@CurbalEN6 жыл бұрын
I am sorry to say this, but it will be faster to ask the Power bi Community! I have other videos scheduled. /Ruth
@shashikanthbasuthkar956 жыл бұрын
I already posted in community But I did not get answers Please give me an answer as a comment it's my Humble request
@CurbalEN6 жыл бұрын
Did you post sample Data so people can easily help you? /Ruth
@shashikanthbasuthkar956 жыл бұрын
please Find the XL link: drive.google.com/file/d/17IU7fHJkAir2XQJP_UZvF0wVoHlMLOy3/view?usp=sharing
@shashikanthbasuthkar956 жыл бұрын
Case when policy_type.policy_type =D and transaction.trn_type=10 and transaction.trn_rid is not null then fact.amount When when policy_type.policy_type =R and transaction.trn_type=10 and transaction.trn_rid is null then fact.amount * -1
@michaelm195ooo4 жыл бұрын
Hi, how can I add another condition if there is Product # 7040357 in Germany and Italy?