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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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 Solution Authors