Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hello everyone,
I'm bulding a report in power bi about sales of some products and how many of them we have in storage.
I need to calculate days of storage, and for that I created a measure named DDI,
DDI= iferror((sum(Consolidado2018[UNIDADES])/sum(StockConsolidado[UNIDADES])),0)*30
The card down there is the result just to see if it works.
The Mesure with totals brings the correct result but it doesn't work with the information of Stores,
For Example, this selected product in the store called Marzam should bring 18.01 instead of 1.50
I think it is important to mention that i have two tables, one is called demanda for the sells and the other one is called stock for the products in our storage. This related by the name of the product that is called sku
Hope you can help me.
Thank you.
This looks like some kind of issue with your relationship. Since your relationship is SKU and your store is not factored into the context, that's likely the reason. Tough to say without data. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
User | Count |
---|---|
140 | |
113 | |
104 | |
77 | |
65 |
User | Count |
---|---|
136 | |
118 | |
101 | |
71 | |
61 |