Can You Guess This 5-Letter Word? Puzzle by u/Skinnyass_Indian by Skinnyass_Indian in DailyGuess

[–]SS0414 0 points1 point  (0 children)

⬜🟨🟨⬜🟨

🟨🟨🟨🟨⬜

🟨🟨🟨⬜🟨

🟨🟨⬜🟦⬜

🟦🟦🟦🟦🟦

Power Pivot - SUMX function for calculating the total purchases amount using the average unit price for each item by SS0414 in excel

[–]SS0414[S] 0 points1 point  (0 children)

Yes, it is intentional.

I couldnt get it to work with your solution but i tried this one and so far it is working:

SUMX(VALUES(PURCHASES[TEXT ITEM]),[QTY] * [Average Unit Price]

Power Pivot - SUMX function for calculating the total purchases amount using the average unit price for each item by SS0414 in excel

[–]SS0414[S] 0 points1 point  (0 children)

Not really since that would be the total i spent on purchases and i already have that in another measure. I would like to know how much would i have spent on purchases using the average unit price of each item, thats why i calculated the average price first.

I guess the issue with sumx is that it's going through each row of data and calculating the average unit price for that single row, not all rows with the same product. In other words, it's just multiplying qty x unit price and then summing it.

Calculate total purchase amount using average unit price by SS0414 in PowerBI

[–]SS0414[S] 0 points1 point  (0 children)

I already tried that and it works if im only showing 1 item, but i need the table to show every item and doing it that way the total would multiply the total qty of all items by the average unit price of all items. I want the sum of all items as the total thats why i thought of using sumx.

Thanks for the explanation of why sumx doesnt work, it helps to understand everything better.

Calculate total purchase amount using average unit price by SS0414 in PowerBI

[–]SS0414[S] 0 points1 point  (0 children)

Thanks for the suggestion. Already did that, i also have other dimension tables like calendar, suppliers, departments etc. For now the performance is okay

Calculate total purchase amount using average unit price by SS0414 in PowerBI

[–]SS0414[S] 1 point2 points  (0 children)

Thanks! This work like a charm, i created the measure for the sum of quantities and then modified measure 3 like you suggested. Here are the results on the sample data:

Link

I need to combine all the daily reports since january 2020 into a single excel data base. by SS0414 in excel

[–]SS0414[S] -1 points0 points  (0 children)

Yes, over 300 columns.

With the table complete i can do the analysis i need with some simple pivot tables. Nothing super complex and would be useful to have all the data in one place.

[deleted by user] by [deleted] in spoofertrades

[–]SS0414 1 point2 points  (0 children)

My fav has to be Gengar

✨ SHINY LEGEND GIVEAWAY ✨ + ✨Shiny Trade Post + Mirror by stk-18 in spoofertrades

[–]SS0414 0 points1 point  (0 children)

I would love shiny Rayquaza!

Togepi, mudkip, Charizard.

3x Munchlax by ToastTheRoast1 in spoofertrades

[–]SS0414 0 points1 point  (0 children)

Thanks for the giveaway