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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
gclements
Helper II
Helper II

Max Date Name With Multiple Dates

Hi,

 

I am trying to get the Maximum Full Date Day Name from the Calandar table for the maximum Charge Date 1 within the Charge table.  However there are multiple dates so I guess I need to use UseRelationship however I cannot get this to work.  Below is what I have so far but it return the last date within the calandar table which is not what I want:

Latest Charge Date 1 =
CALCULATE (
MAX ( Calandar[Full Date Day Name Long] ),
LASTDATE ( Charge[Charge Date 1] ),
USERELATIONSHIP ( Charge[Charge Date 1], Calandar[Date] )
)
3 REPLIES 3
Anonymous
Not applicable

Hi @gclements ,

 

Please try to use the aggregation of MAX directly in  Values field:

2.19.3.1.PNG

If you are still confused about it, please provide me with more details about your table and your problem or share me with your pbix file from your Onedrive for Business after removing sensitive data.

 

Best Regards,
Eyelyn Qin

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

selimovd
Super User
Super User

How are the tables Calendar and Charge connected?

Can you post a screenshot of the relationship

Hi,

 

There are multiple date columns within the charge table which are connected to the Calandar table.  BillingPeriodFromDate is the active relationship for the purposes of most reporting.  Therefore the relationship between 'Charge'ChargeDate1 and 'Calandar'[Date] needs to be activated.

 

Screenshot below.

gclements_0-1613573878349.png

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors