Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
105 | |
96 | |
75 | |
63 | |
62 |
User | Count |
---|---|
135 | |
105 | |
104 | |
80 | |
65 |