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

LAST DATE WITH SALE BY CUSTOMER

Hi!

 

I have a situation, i hope anybody could help me.  

 

I have 2 tables, table A kardex customers. And table B sales by date and customer's.

 

tableA.

CESARPULIDOGDL_1-1681747486133.png

 

Table B.

CESARPULIDOGDL_2-1681747568362.png

 

I need a measure or calculated column in table A, that showme the last date of sales of that customer, like green column:

 

CESARPULIDOGDL_4-1681747788725.png

thank you.

 

 

 

 

3 REPLIES 3
Mahesh0016
Super User
Super User

@CESARPULIDOGDL  
create Calculated Column in Table A =
last Date = MAX(realated('Table B'[Date]))

@CESARPULIDOGDL I hope this help you.

it doesn't work, anyway, thanks.

hi @CESARPULIDOGDL 

Supposing they are related, try to add a calculated column like:

Column =
MAXX(
   RELATEDTABLE(TableB),
   TableB[last date  sales]
)

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.