DAX Fridays! #93: MAXX | Fill down with DAX and Power Query

  Рет қаралды 6,683

Curbal

Curbal

Күн бұрын

Пікірлер: 51
@navaidmansoor7945
@navaidmansoor7945 4 жыл бұрын
I searched for about a week before i stumbled upon this video which solved my problem to the letter. Tnx a bundle
@mehdihammadi6145
@mehdihammadi6145 6 жыл бұрын
Thank you Ruth, this is a very interesting use of the MAXX function
@CurbalEN
@CurbalEN 6 жыл бұрын
Isn’t it? And extremely useful :) Happy Friday! /Ruth
@Victor-ol1lo
@Victor-ol1lo 6 жыл бұрын
Super function ... and as I learnt recently can also deliver text values within measures.... Thanks for sharing and have a nice weekend !!!
@CurbalEN
@CurbalEN 6 жыл бұрын
Same to you :D /Ruth
@sgk1966
@sgk1966 6 жыл бұрын
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.
@CurbalEN
@CurbalEN 6 жыл бұрын
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
@MrPapeBoubacar
@MrPapeBoubacar 6 жыл бұрын
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!!
@CurbalEN
@CurbalEN 6 жыл бұрын
It definitely is :) Happy Friday!! /Ruth
@tonyandlisab
@tonyandlisab 2 жыл бұрын
Love it - just what I was after. Thanks Curbal
@CurbalEN
@CurbalEN 2 жыл бұрын
Music to my ears :)
@nicoymartina
@nicoymartina 3 жыл бұрын
Thank you, Ruth!
@tanababa
@tanababa 6 жыл бұрын
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?
@CurbalEN
@CurbalEN 6 жыл бұрын
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
@tanababa
@tanababa 6 жыл бұрын
Looking forward to it :-)
@CurbalEN
@CurbalEN 6 жыл бұрын
I will do a Quick update on Tuesday!
@tonyandlisab
@tonyandlisab 2 жыл бұрын
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? ❤
@AravindanM93
@AravindanM93 6 жыл бұрын
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.
@CurbalEN
@CurbalEN 6 жыл бұрын
You should be able to do it, can you post the question in the power bi community? Thanks! /Ruth
@andrewrender
@andrewrender 2 жыл бұрын
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?
@andrecavasotero6234
@andrecavasotero6234 6 жыл бұрын
Great. I did not know this utility of the MAXX function. Thanks for sharing.
@CurbalEN
@CurbalEN 6 жыл бұрын
You welcome and happy Friday! :) /Ruth
@sobsawats.9109
@sobsawats.9109 6 жыл бұрын
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.
@CurbalEN
@CurbalEN 6 жыл бұрын
Try them both in DAX studio and let us know ;) /Ruth
@sobsawats.9109
@sobsawats.9109 6 жыл бұрын
Thanks, I never used DAX studio. will try.
@CurbalEN
@CurbalEN 6 жыл бұрын
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.9109
@sobsawats.9109 6 жыл бұрын
Curbal Thanks again. I’ve got your point.
@maxivy3299
@maxivy3299 2 жыл бұрын
This formula works with numbers which is even better
@sahuanalogchannel
@sahuanalogchannel 2 жыл бұрын
Hi Ma'am, what happened if we have two country value for same product id. Will this work or not?
@rassten
@rassten 6 жыл бұрын
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???
@CurbalEN
@CurbalEN 6 жыл бұрын
I am posting my new channel intro on Tuesday, so you will get 4 videos next week! So you detox slowly 😂😂😂 Happy Friday! /Ruth
@michaelm195ooo
@michaelm195ooo 4 жыл бұрын
Hi, how can I add another condition if there is Product # 7040357 in Germany and Italy?
6 жыл бұрын
¡Tremendo!
@CurbalEN
@CurbalEN 6 жыл бұрын
Gracias! /Ruth
@selenevera8834
@selenevera8834 5 жыл бұрын
Thank you. This is amazing ; )
@CurbalEN
@CurbalEN 5 жыл бұрын
And thanks for the feedback!! /Ruth
@pratikfutane8131
@pratikfutane8131 6 жыл бұрын
Fantastic
@CurbalEN
@CurbalEN 6 жыл бұрын
Thanks! /Ruth
@sbn4862
@sbn4862 2 жыл бұрын
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
@Unbox747
@Unbox747 3 жыл бұрын
Thanks this solved a big problem for me. Who would have know you can apply a MAX function to a column of text. 😮
@CurbalEN
@CurbalEN 3 жыл бұрын
Right? 🤷‍♀️
@shashikanthbasuthkar95
@shashikanthbasuthkar95 6 жыл бұрын
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
@CurbalEN
@CurbalEN 6 жыл бұрын
I am sorry to say this, but it will be faster to ask the Power bi Community! I have other videos scheduled. /Ruth
@shashikanthbasuthkar95
@shashikanthbasuthkar95 6 жыл бұрын
I already posted in community But I did not get answers Please give me an answer as a comment it's my Humble request
@CurbalEN
@CurbalEN 6 жыл бұрын
Did you post sample Data so people can easily help you? /Ruth
@shashikanthbasuthkar95
@shashikanthbasuthkar95 6 жыл бұрын
please Find the XL link: drive.google.com/file/d/17IU7fHJkAir2XQJP_UZvF0wVoHlMLOy3/view?usp=sharing
@shashikanthbasuthkar95
@shashikanthbasuthkar95 6 жыл бұрын
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
@michaelm195ooo
@michaelm195ooo 4 жыл бұрын
Hi, how can I add another condition if there is Product # 7040357 in Germany and Italy?
DAX Fridays! #94: Fill down with DAX (part 2)
5:47
Curbal
Рет қаралды 3,4 М.
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН
Combine Files from a Folder with Power Query the RIGHT WAY!
10:18
MyOnlineTrainingHub
Рет қаралды 187 М.
DAX Fridays! #78: When should I use FILTER() with CALCULATE?
11:35
DAX Fridays! #145: SUMMARIZECOLUMS
11:15
Curbal
Рет қаралды 42 М.
The Secrets of Drillthrough in Power BI
12:16
BI Gorilla
Рет қаралды 32 М.
DAX and the Start Date End Date Problem aka Events In Progress
12:54
Access Analytic
Рет қаралды 52 М.
DAX Fridays! #111: Manual "forecasting” with DAX
14:58
Curbal
Рет қаралды 10 М.
DAX Fridays! #77: GROUPBY, CURRENTGROUP
12:27
Curbal
Рет қаралды 52 М.
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН