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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
nat365
Frequent Visitor

Duplicated rows after creating calculated table

HI,

 

Recently I've added calculated table in my Power BI model, which resulted in duplicated rows in table visual when there is no match between imported table and calculated table.  

 

Dax Code:

CalcTabl= SUMMARIZE(
    CALCULATETABLE(Table1, Table1[Status]="Y"),
    Table1[Product],
    "Material Source", CONCATENATEX(VALUES('Table2'[Source]),'Table2'[Source], ",
    "),
    "Number of Materials", DISTINCTCOUNT(Table1[Material]),
    "Material", CONCATENATEX(VALUES(Table1[Material]),Table1[Material], ",
    "),
    "Material Description", CONCATENATEX(VALUES('Table3'[Description]),'Table3'[Description], ",
    "))
 
Do you know if there is a way to put filter in code that defines columns instead filtering source table?
Or is there another way to eliminate duplicated rows?
 
Thank you for you help in advance!
2 REPLIES 2
Anonymous
Not applicable

Hi @nat365 ,

As checked the formula of calculated table, it involves 3 tables: Table1Table2 and Table3. Is there any relationship among these 3 tables? If yes, please provide the relationship info(cardinality, direction etc.). Could you please provide some raw data in your tables (exclude sensitive data) with Text format and your expected result with some example and screenshot? It would be helpful to find out the solution. You can refer the following link to share the required info:

How to provide sample data in the Power BI Forum

 

And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

lbendlin
Super User
Super User

I would have said you should slap a DISTINCT()  around your SUMMARIZE ().  But that sounds odd, as SUMMARIZE already does the deduplication for you.  Can you show an example of the alleged duplicates?

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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