Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Is there a way to duplicate the XLOOKUP function in DAX? In my excel file, if the number of photos=0, then I need to look for the next date where the number of photos is greater than 0, and assign the Tier Lookup to the dates prior. The desired result is shown in column I.
Thank you!
Good afternoon jwarner,
Consider using Power Query to solve this instead of DAX. Power Query offers better tracability of this kind of transformation.
I reserve DAX in order to create measures that I will use in my visual and not to transform data.
Regarding your question:
- sort your data set by date ascending
- assuming the column "project tier" is filled for the day with a number of pictures and NULL for the day with number of pictures is 0, then you could use the out fo the box function "Fill up" to fulfill your requirements.
Did it answer your question? Mark it as a solution to your post
If you like my solution, please add a kudo
Good luck.
Kind regards,
Lohic Beneyzet
Thanks! I'll give that a try.
Best,
Jennifer
Thanks Greg, I'll see if I can make that work.
Best,
Jennifer
User | Count |
---|---|
15 | |
13 | |
12 | |
10 | |
10 |
User | Count |
---|---|
19 | |
15 | |
14 | |
11 | |
10 |