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
Anonymous
Not applicable

MAX Date returns blank for some rows

Hi,

 

I have a basic measure to retrieve the MAX value for a date field, however, for some records it shows blank when the base date field has a value:

 

Capture.PNG

 

Latest Received Date = MAX(Table1[Received Date]).

 

I'm not sure what the issue is here. Has anyone seen something like this? The end goal is to calculate a date differential using this latest received date. The DAX requires a scalar value, so I'm using MAX to retrieve it.

 

Thanks!

6 REPLIES 6
Anonymous
Not applicable

Hi,

I had the same problem, i used some functions and it returned blank

if someone knows exactly the origin of the problem.

to overcome it here is what i did

Measure =

VAR dtf = CALCULATETABLE(FILTERS(Table1[Received Date]))

VAR dt =IF(COUNTROWS(dtf)=1,dtf)

RETURN dt

v-chuncz-msft
Community Support
Community Support

@Anonymous ,

 

Try adding a calculated column instead of measure.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi,

 

I forgot to mention that it is a Direct Query model so I can't use MAX in a calculated column. I also need to reference this single scalar value in a different DAX calculation. I've also tried SELECTEDVALUE and the result is the same; returns the same value as the base Received Date column for almost every record except the dates pictured above.

 

If I switch to import (Azure SQL), is daily the most frequent refresh that can be scheduled?

Anonymous
Not applicable

@Anonymous  Hi Sicilian -- is your requirement to find to MAX date for the entire received column, or the MAX date per row?

 

If you switch to import mode you can refresh up to 8 times per day using Pro BI Pro version.

Anonymous
Not applicable

We are using Power BI Premium, but in the data set options for scheduled refresh, the drop down only allows Daily/Weekly. Does this 8x per day limit mean it must be done manually intra-day?

 

Capture.PNG

You can schedule multiple times just as @Anonymous has said. Check reference picture below.

iyiola_daniel_0-1654515547511.png

 

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.