D4: Top3 Categories w highest revenue contribution |

  Рет қаралды 1,509

Curbal

Curbal

Күн бұрын

Пікірлер: 40
@CurbalEN
@CurbalEN 2 ай бұрын
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!
@Elkhamasi
@Elkhamasi 2 ай бұрын
That last part of sorting by a column in concatenatex is my learning tip of the week
@CurbalEN
@CurbalEN 2 ай бұрын
It is neat!
@geineralbertomejiagarzon4034
@geineralbertomejiagarzon4034 2 ай бұрын
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.
@CurbalEN
@CurbalEN 2 ай бұрын
It often is!! 😃
@Wozzuup
@Wozzuup 2 ай бұрын
But top 3 categories with highest revenue = top 3 highest revenue contribution
@regme4life191
@regme4life191 2 ай бұрын
Thank you Mam. It really helped a lot.
@connerkoski2183
@connerkoski2183 2 ай бұрын
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!
@CurbalEN
@CurbalEN 2 ай бұрын
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.
@AgulloBernat
@AgulloBernat 2 ай бұрын
@@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.
@CurbalEN
@CurbalEN 2 ай бұрын
@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.
@AgulloBernat
@AgulloBernat 2 ай бұрын
@@CurbalEN I'll send you the image capture on LinkedIn
@emanueledelzoppo5164
@emanueledelzoppo5164 2 ай бұрын
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!
@CurbalEN
@CurbalEN 2 ай бұрын
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
@CurbalEN
@CurbalEN 2 ай бұрын
😂😂 I hated them too!! They really messed things up for me too :)
@natsarev
@natsarev 2 ай бұрын
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.
@CurbalEN
@CurbalEN 2 ай бұрын
My thoughts exactly!
@CurbalEN
@CurbalEN 2 ай бұрын
Check the glossary and ask me if in doubt. That is how you would do it in real life too right?
@natsarev
@natsarev 2 ай бұрын
Yes, we figured this out with Ruth on LinkedIn. Prices are without discount applied.
@odeddror8916
@odeddror8916 2 ай бұрын
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% ?
@odeddror8916
@odeddror8916 2 ай бұрын
My mistake replacing ProdId by Category ID fix the issue
@CurbalEN
@CurbalEN 2 ай бұрын
@odeddror8916 Sounds familiar!! (Did that mistake a few times myself)
@martyc5674
@martyc5674 2 ай бұрын
Aaah! - I had a much simpler formula -but i forgot the discount 🤦‍♀🤦‍♀
@CurbalEN
@CurbalEN 2 ай бұрын
I am accepting the solution without discount because it was not clear in the glossary
@martyc5674
@martyc5674 2 ай бұрын
Ah no problem either way, it just goes to show, I was so consumed with the DAX I missed the basics 😂
@CurbalEN
@CurbalEN 2 ай бұрын
😂😂 Feel your pain, did that myself a ton of times!
@Henrik.Vestergaard
@Henrik.Vestergaard 2 ай бұрын
Ha, "Sort ascending all text answers"
@CurbalEN
@CurbalEN 2 ай бұрын
And descending topn! Never resolved the conflict though 😂
@Henrik.Vestergaard
@Henrik.Vestergaard 2 ай бұрын
@@CurbalEN No worries. It amazing, that you've done a new challenge. Cheers, Henrik
@CurbalEN
@CurbalEN 2 ай бұрын
Thanks! ❤️
@JenKuntzGP
@JenKuntzGP 2 ай бұрын
DOH! My first wrong answer of the challenge. I forgot about discounts.
@CurbalEN
@CurbalEN 2 ай бұрын
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 !)
@JenKuntzGP
@JenKuntzGP 2 ай бұрын
@@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.
@CurbalEN
@CurbalEN 2 ай бұрын
@JenKuntzGP I am accepting both answers as my definitions where unclear!
@Fajksa
@Fajksa 2 ай бұрын
damn.. I took discount as value not percentage, my bad
@CurbalEN
@CurbalEN 2 ай бұрын
Oh no! :(
@Fajksa
@Fajksa 2 ай бұрын
@@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
@CurbalEN
@CurbalEN 2 ай бұрын
That is the number one tip! You got this 😃
"Идеальное" преступление
0:39
Кик Брейнс
Рет қаралды 1,4 МЛН
OCCUPIED #shortssprintbrasil
0:37
Natan por Aí
Рет қаралды 131 МЛН
Power BI: Export Measures List with DAX Studios (EASY!)
10:46
Bulldog Analytics
Рет қаралды 4,5 М.
10 years of coding in 13 minutes
13:28
Joma Tech
Рет қаралды 5 МЛН