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.
Hi Team,
I have three tables - Customers (customer details), Feedback (Feedbacks given by customers), Sales(sales by customers). Id column in Customers table is used to link tables. I want to find percentage of sales by each customer type(customer type is a column from feedback table).
3 type of customers are "P", "D","Ps".
I used following calculation
Hi @CC2019
Would you mind trying to add below measure, then calculate the percentage:
SUMSales = CALCULATE(SUM(Sales[Sale]),FILTER('Feedback', Feedback[Type]="P"||Feedback[Type]="D"Feedback[Type]="Ps"))
Pr_Sales% =var total= CALCULATE(SUM(Sales[Sale]), Filter('Feedback', [Type]="P")) Return DIVIDE(total,SUMSales)
Hi @CC2019
Could you please share your simple worksheet/dummy pbix preferable?
As the customer has more than one feedback, it is not rolling up to 100%. So you need to select only one feedback. Or need do changes to get sales also counted more than once if there is more than one feedback.
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 |
---|---|
109 | |
98 | |
80 | |
64 | |
57 |
User | Count |
---|---|
145 | |
111 | |
92 | |
84 | |
66 |