Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi,
I am trying to produce a table that will report the number of contracts that my company has in each country by reference. This is complicated slightly by the the fact that I am using multiple tables.
Underwriter Ref & RiskCountry are within Table 1 and DeclartionCount are in Table 2.
This is the desired result
Underwriter Ref | RiskCountry | No of Policies |
ref1AA | Canada | 3 |
ref1AA | Singapore | 1 |
ref1AA | South Africa | 1 |
ref1AA | Taiwan | 1 |
ref1AA | United Arab Emirates | 3 |
ref1AA | United States | 2 |
ref1AG | United States | 9 |
ref1AK | Canada | 3,876 |
ref1AM | United States | 180 |
ref1AN | United States | 499 |
ref1AQ | United States | 1 |
Total 4,576
But what I am currently returning is
Underwriter Ref | RiskCountry | No of Policies |
ref1AA | Canada | 4,576 |
ref1AA | Singapore | 4,576 |
ref1AA | South Africa | 4,576 |
ref1AA | Taiwan | 4,576 |
ref1AA | United Arab Emirates | 4,576 |
ref1AA | United States | 4,576 |
Any assistance would be greatfully appreciated.
Solved! Go to Solution.
You can do a relationship by using the two columns country and company reference
Hi @donovanm ,
Thanks for reaching out to the Microsoft fabric community forum.
@ronrsnfld @FreemanZ @tharunkumarRTK ,
Thanks for your prompt response
Please provide sample data that fully covers your issue or question, in a usable format (not as a screenshot). Do not include sensitive information or anything unrelated to the issue. Also, show the expected outcome based on the sample data you provided.
Best Regards,
Lakshmi Narayana
Hi @donovanm ,
I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please "Accept as Solution" and give a 'Kudos' so other members can easily find it.
Best regards,
LakshmiNarayana.
Hi @donovanm ,
If your question has been answered, kindly mark the appropriate response as the Accepted Solution. This small step goes a long way in helping others with similar issues.
We appreciate your collaboration and support!
Best regards,
LakshmiNarayana
Please also post your Table 1 and Table 2
You can create a relationship and then add
create a simle DAX measures for No.ofPolicies
No of Policies = SUM(Table[No of Policies])
Create a table visual and bring the Underwriter Ref & RiskCountry columns and the above measure into it.
Connect on LinkedIn
|
Hi, thank you for your suggestion. I am now closer but I still have an issue so the measure may need some tweaking.
Company Ref | RiskCountry | 4,576 |
ref1AA | Canada | 11 |
ref1AA | Singapore | 11 |
ref1AA | South Africa | 11 |
ref1AA | Taiwan | 11 |
ref1AA | United Arab Emirates | 11 |
ref1AA | United States | 11 |
ref1AG | United States | 9 |
ref1AK | Canada | 3,876 |
ref1AM | United States | 180 |
ref1AN | United States | 499 |
ref1AQ | United States | 1 |
Total | 4,631 |
Thank you in advance.
Hi,
I have a relationship on the company reference.
Rgds,
You can do a relationship by using the two columns country and company reference
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
13 | |
12 | |
9 | |
8 |
User | Count |
---|---|
17 | |
10 | |
8 | |
8 | |
7 |