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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
ilyakoslov
Frequent Visitor

Adding a row to a table with table combine or something like it

So I have two tables, one of them I have the amount of product sold and on the other I have the amount of product in my storage. The problem is, when I do the LOOKUPVALUE to find the amount sold in a specific date sometimes it doesn't work. 

 

Let's say I have one product in my storage on month 1, if I sell it on month 2 the amount of product sold won't appear in my storage data since I don't have a row with 0 storage. I wanted to combine those two, so that I would add a row for each time this happens and the row added would have 0 storage or null for the amount stored column but it would have the amount sold. I hope you guys can understand this, but if you can't just ask and i'll try and explain it better

1 REPLY 1
Greg_Deckler
Community Champion
Community Champion

@ilyakoslov LOOKUPVALUE is unreliable. Use MAXX(FILTER(...),...) instead.



Follow on LinkedIn
@ 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!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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