Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I would like some help with the following. I have two different imported datasets both with a column named ''Customer Nr''.
The first data set is a list of customer complaints of the current year, so with the possibility that a certain customer has more than 1 complaint and thus is mentioned more than once in the list. The second data set has the totale deliveries for all potential customers in this year, so again the possibility to be mentioned more than once in the list.
What I want to do is show the ratio of amount of complaints per customer as compared to their total deliveries. My question is; how to set up a certain calculation where there more possibilities of mentioned values per list? I think I should create a new calculated column or measure but not quite sure which formula to use.
Solved! Go to Solution.
Ah, I think you might need to do it in Power Query then. If you create 2 new queries by referencing your existing queries, you can delete all the columns except customer number, append the queries and then remove duplicate values. you should then be able to link that new table with the other 2
You can create a new table with all the customer numbers with
Customers = DISTINCT( UNION( VALUES( Complaints[Customer number]), VALUES( Orders[Customer number]) ) )
then link this new table to both your existing tables in one-to-many relationships.
You can then create measures like
Ratio complaints to deliveries = DIVIDE( COUNTROWS( Complaints), COUNTROWS(Orders))
and put that in a visual with the customer number from the new table
Hi, thanks for replying!
When I try the first step I get the following error message:
PowerBI won't let me link this new table to the existing tables, before fixing this issue. Any idea what I'm doing wrong?
Kind regards
You're missing a ) after the first ]
Ah, that was a bit dumb, my bad.
However, now I am facing the following issue of a circular dependency:
Ah, I think you might need to do it in Power Query then. If you create 2 new queries by referencing your existing queries, you can delete all the columns except customer number, append the queries and then remove duplicate values. you should then be able to link that new table with the other 2
Ah, I think I managed to make it work. Thanks for explaining!
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
69 | |
68 | |
40 | |
29 | |
26 |
User | Count |
---|---|
88 | |
49 | |
45 | |
38 | |
37 |