IMPORTANT note about DAY 4 of the 25 days of DAX Fridays! challenge. I can see how Sales= Revenue after discount made you think that revenue was before discount. I modified the definition an hour later, but it is not fair to those of you who didn't see it, so I will accept "Beverages, Confections, Meat/Poultry" as an answer too!! 🥳🥳🥳 I will change the Leaderboard in a few minutes to reflect that. Note that the solution for DAY 5 will come on Monday, I need a rest 😂😂😂 Enjoy the weekend!
@Elkhamasi2 ай бұрын
That last part of sorting by a column in concatenatex is my learning tip of the week
@CurbalEN2 ай бұрын
It is neat!
@geineralbertomejiagarzon40342 ай бұрын
Contribution, that was the key word that I overlooked, so I did not calculate any proportion. As you said at the beginning of the challenge, to understand the problem is the 50% of the solution.
@CurbalEN2 ай бұрын
It often is!! 😃
@Wozzuup2 ай бұрын
But top 3 categories with highest revenue = top 3 highest revenue contribution
@regme4life1912 ай бұрын
Thank you Mam. It really helped a lot.
@connerkoski21832 ай бұрын
I think this one was more confusing because when I think of revenue it is gross where applying a discount would be "net" revenue. Still enjoyed it though!
@CurbalEN2 ай бұрын
Yeah, wording things is tough. You never know what meaning can be derived from the same word. The glossary defined Sales/Revenue after discount to clarify.
@AgulloBernat2 ай бұрын
@@CurbalEN that's after you updated the glossary. On the previous version "Revenue" explicitly said it was without discounts and "Sales" with discounts. I would suggest to count both as correct for this reason.
@CurbalEN2 ай бұрын
@AgulloBernat Can you show me where? I am bot aware of a place where I defined revenue should be after discount. If I am wrong , i will correct.
@AgulloBernat2 ай бұрын
@@CurbalEN I'll send you the image capture on LinkedIn
@emanueledelzoppo51642 ай бұрын
Hello Ruth silly question for sure but I'm new to DAX. Why Divide and then Calculate and not the opposite? I really enjoy the 25daysofdaxfridays challenge. I wish you a lovely weekend ahead!
@CurbalEN2 ай бұрын
Oy, I dont remember what I did! I will check on Monday :)
2 ай бұрын
damn you discounts!!! got me again. Can i start hating them? :P
@CurbalEN2 ай бұрын
😂😂 I hated them too!! They really messed things up for me too :)
@natsarev2 ай бұрын
Ruth, hi. In Order_Details table prices are already with discount applied (just compare it with prices in table Products). So the correct formula to calculate revenue is just SUMX(Order_Details,Order_Details[UnitPrice]*Order_Details[Quantity]) and correct answer for the question is Beverages, Dairy Products, Meat/Poultry. That's why you have so many incorrect answers for this question, that are actually correct.
2 ай бұрын
I don't think that's true. If you look at, for example product Chai, the unit price is 18 and on orderdetails is always 18 also for any of the different discounts. there are orderdetails with inferior prices but it's not always equal to the discount. probably the price rised.
@CurbalEN2 ай бұрын
My thoughts exactly!
@CurbalEN2 ай бұрын
Check the glossary and ask me if in doubt. That is how you would do it in real life too right?
@natsarev2 ай бұрын
Yes, we figured this out with Ruth on LinkedIn. Prices are without discount applied.
@odeddror89162 ай бұрын
If you look at the matrix with ProdID categoryName and Revenue contribution you will see that category Name = 1) Beverages 11.17% 2) Meat/Poultry 6.35% 3) Diary product 5.62% ?
@odeddror89162 ай бұрын
My mistake replacing ProdId by Category ID fix the issue
@CurbalEN2 ай бұрын
@odeddror8916 Sounds familiar!! (Did that mistake a few times myself)
@martyc56742 ай бұрын
Aaah! - I had a much simpler formula -but i forgot the discount 🤦♀🤦♀
@CurbalEN2 ай бұрын
I am accepting the solution without discount because it was not clear in the glossary
@martyc56742 ай бұрын
Ah no problem either way, it just goes to show, I was so consumed with the DAX I missed the basics 😂
@CurbalEN2 ай бұрын
😂😂 Feel your pain, did that myself a ton of times!
@Henrik.Vestergaard2 ай бұрын
Ha, "Sort ascending all text answers"
@CurbalEN2 ай бұрын
And descending topn! Never resolved the conflict though 😂
@Henrik.Vestergaard2 ай бұрын
@@CurbalEN No worries. It amazing, that you've done a new challenge. Cheers, Henrik
@CurbalEN2 ай бұрын
Thanks! ❤️
@JenKuntzGP2 ай бұрын
DOH! My first wrong answer of the challenge. I forgot about discounts.
@CurbalEN2 ай бұрын
Oh no! Check the glossary Other tab if you are in doubt or ask me. i tried to add some definitions to makes things more clear (not that I have succeed all the times !)
@JenKuntzGP2 ай бұрын
@@CurbalEN No worries! I'm an accountant, I should know what it meant, but just had "Unit Price x Quantity" in my head, not factoring in that discounts were possible.
@CurbalEN2 ай бұрын
@JenKuntzGP I am accepting both answers as my definitions where unclear!
@Fajksa2 ай бұрын
damn.. I took discount as value not percentage, my bad
@CurbalEN2 ай бұрын
Oh no! :(
@Fajksa2 ай бұрын
@@CurbalEN I promise read glossary more and ask more questions if in doubt. Today I read some comments with doubt same as mine, so should be fine