Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Morning,
I am trying to create some measures to display the average of unique products purchased by each customer based on customer characteristics.
I have one table with sales wich includes daily sales on customer and products, and another table with unique customers and their characteristics (i.e active customer Y/N, custoerm logged on last 90 days Y/N, etc)
The relationship of the tables in the model is Many to 1 (Sales to Customer)
The output I am looking for is something like below where I can recalculate on average how many distinct products are purchased by customers in a specifc category.
I already have a measure to calcualte the number of customers for each funnel category but now I need a measure for the average of distinct product purchased.
I started creating something like this but I got stuck in the RETURN part, I am not sure what syntax I should use:
Solved! Go to Solution.
@mq2020 , it should come like
AVERAGEx(SUMMARIZE('Sales','Sales'[ClientId], "_Products", CALCULATE(DISTINCTCOUNT('Sales'[Product]))),[_Products])
the filter should be part of either table name or Calculation of measure
AVERAGEx(SUMMARIZE('Sales','Sales'[ClientId], "_Products", CALCULATE(DISTINCTCOUNT('Sales'[Product]))),[_Products])
@mq2020 , it should come like
AVERAGEx(SUMMARIZE('Sales','Sales'[ClientId], "_Products", CALCULATE(DISTINCTCOUNT('Sales'[Product]))),[_Products])
the filter should be part of either table name or Calculation of measure
AVERAGEx(SUMMARIZE('Sales','Sales'[ClientId], "_Products", CALCULATE(DISTINCTCOUNT('Sales'[Product]))),[_Products])
can i have a bi file ? Please
User | Count |
---|---|
140 | |
113 | |
104 | |
77 | |
65 |
User | Count |
---|---|
135 | |
118 | |
101 | |
71 | |
61 |