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
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
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.