Forum Discussion
hidenseek9
8 years agoPost Patron
Calculating average price using distict count??
Hello Power BI Community I am having a difficulty calculating average price of all of our products per store per month. Please find below as the data. Dummy Data What I want to do is simple...
- 8 years ago
Hi hidenseek9,
Try these formulas
Count=DISTINCTCOUNT(Data[Store])
Contribution (%)=[Count]/CALCULATE([Count],ALL(Data[Brand]),ALL(Data[Product]))
Hope this helps.
hidenseek9
8 years agoPost Patron
Ashish_Mathur
8 years agoSuper User
Hi hidenseek9,
You say that you want to know in how many stores each product is sold? In your dataset, i see Product Name but i do not see any Store Name column. Please show the exact structure of your expected result.
- hidenseek98 years agoPost Patron
- Ashish_Mathur8 years agoSuper User
- hidenseek98 years agoPost Patron
What I would like to know is below on any given month.
- A total number of stores checked. (i.e. Brand A: 200 stores, Brand B: 300 stores,...All Brand 1000 stores)
- A total number of stores that each product is sold. (i.e. Brand A Product Name 1: 50 stores, Brand A Product Name 2: 100 stores, etc.)
- Distribution of each product in percentage. (This would be 2 / 1 (A total number of stores checked for all brands)
Many thanks,
H