Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
Wardy
Frequent Visitor

Matrix Help

I am currently having an issue when adding a field to the Columns of a Matrix table.

I have simiplified the results down to see if anyone can help.

 

Table 1 - FactPolicyTransactions [FPT] gives me a Total of 70 Sales based on a DistinctCount of Policy.

ClassOfBusinessCode is also taken from the [FPT] 

 

Wardy_2-1620404850465.png

Wardy_0-1620404777545.png

 

Table 2 - contains the Class of Use from the Logical.SummaryCovernetCombined table and when added to the matrix it shows as:

Wardy_1-1620404807705.png

 

The correct split should be :

Commercial Office 28

Commercial Shop 42

 

There is a 1:* join between the tables based on PolicyTransactionKey

 

Wardy_4-1620404958373.png

 

Any help or pointers greatly appreciated 😇

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@Wardy  Can you try making the cardinality to bidirectional seems like you are trying to filter table (2) with table(1) attributes which is why it is giving wrong result

 

Regards,

Husna

View solution in original post

4 REPLIES 4
v-lionel-msft
Community Support
Community Support

Hi @Wardy ,

 

How abut this?

Measure =
CALCULATE(
    DISTINCTCOUNTNOBLANK('Table'[Column]),
    ALL('Table')
)

 If it's not work, please provide sample data.

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-lionel-msft thanks for taking the time to look at this. Happy to say I now have this issue resolved. 😁

Anonymous
Not applicable

@Wardy  Can you try making the cardinality to bidirectional seems like you are trying to filter table (2) with table(1) attributes which is why it is giving wrong result

 

Regards,

Husna

Thanks @Anonymous for this solution it resolved my issue. 👏👏

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.