We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hello Everyone,
Firstable, thank you in advance for help. I will to be the more clear as I can.
Here the context. I need to calculate the sales per group of stores which are rattached to a warehouse. To do this, I have several warehouses and each stores is rattached to only one of them.
To make it simple, let say, we have 2 warehouses (W_A and W_B) and 8 (Store 1, Store 2.... Store 😎 stores. And in my world:
Today I can identify which stores is rattached to which warehouse and I have all sales for all stores per products, thanks to a measure.
CONCATENATEX(VALUES(Data_Order[No Store]);Data_Order[No Store];", ")
Below, you can find how is build my sales table:
To resume in one sentence : I want to know the sales of the stores that are rattached to the warehouse. Below and a last example :
And the measure I already tried (The first part is for calculate the monthly sales:
CALCULATE(AVERAGEX(VALUES(LookUp_Calendar[YYYYMM]);[Quantity Sold]);FILTER(Data_Sales;VALUES(Data_Sales[No Stores]))))
Thank you and have a great day
Erwan
Hi @Anonymous ,
can you share a sample Power BI file via DropBox, One Drive, Drive or another similar tool?
That will make it easier to help you.
Regards,
LC
Hi @Anonymous ,
I checked it. When I use the column BU from the Sales table instead of the Order table, the matrix works well.
I see that the formula for the BU name is :
BU Name order = CONCATENATEX(
VALUES('Order'[BU]),'Order'[BU],", ")If you want to use it to split sales (and not orders) by BU, why not changing it to:
BU Name sales = CONCATENATEX(
VALUES('Sales'[BU]),'Sales'[BU],", ")Let me know if it works,
LC
Hi @lc_finance
Thanks for answering. I attached the PBI
In my example, I have the total quantity sold equal to 1200 pieces for 1 product. But I need the quantity sold by BU.
I need to see 500 pieces for Europe and 700 pieces for America. We have to take into account that my data are built exactly as the PBI I attached. therefore, I can't add a product type in my sales table. (Which is in reality a carton bar code).
I hope this time, it will be more clear.
Thanks in advance,
Here the document : Link to PBI
Erwan
Hi @Anonymous ,
it looks like the link to the Power BI file is not a public link so I cannot access it.
You could check if it's possible to make it public?
Regards
LC
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 57 | |
| 38 | |
| 32 | |
| 18 | |
| 16 |
| User | Count |
|---|---|
| 66 | |
| 66 | |
| 40 | |
| 34 | |
| 25 |