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
Joyceshen123456
Frequent Visitor

DAX add 0 will happen cartesian product

 

Joyceshen123456_2-1685701853846.png

 

There are table1[YM] and table2[YM,amount],and they relationship is table1[YM] ---> table2[YM],

and make a dax -->   

amount_1 = SUM(t2[Amount])+0
amount 2 = SUM(t2[Amount])
 

when I drag table1[YM] 、 table2[YM] columns and [amount 2] , the table is correct

Joyceshen123456_1-1685701837090.png

but when I drag [amount 1] , the Table display wrong

Joyceshen123456_3-1685701971800.png

so I want to know why does this display occur,is it a debug?

 

 

2 REPLIES 2
Greg_Deckler
Super User
Super User

@Joyceshen123456 It's not a bug. Table and matrix visuals do not display don't display rows when values come back blank. The rows you are seeing in the last image are still present and in context, it's just that they are suppressed above because only the 202302 row has an amount 2 result that is non-blank. However, in once you force a +0, then all rows return a non-blank value.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Thank you very much for answering my question,I still feel confused about that the t1 and t2 tables have a one-to-many relationship by [YM] ,so in the table the first column is t1[YM], the Second is t2[YM],so when the dax+0, it look like the one-to-many relationship is disable?(if i use sql,t1 left join t2,it only have one line,those data with 0 will not be displayed)

Joyceshen123456_0-1685931124223.png

 

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.

Top Kudoed Authors