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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
CityRoamer
New Member

How to display blank results in CALCULATE MAX 'TABLE'[DATES]

Hi - I have a table of job runs that contains a column of job IDs and column of job run dates.  I created a measure that will calculate the most recent job run date for each job ID using the following calculation:

 

Last Run = CALCULATE(MAX('Job Run'[Run Date]))
 
When adding this measure as a field on a report page (which has the 'Job' data field that has the full list of jobs), it does calculate the most recent job run for each job listed on the report page if run dates exist.  However, if there are no run dates for a given job, it causes the job to hide from the report.  I'm assuming this is because there is nothing to calculate for that particular job. 
 
I would rather the Last Run show up as blank instead of causing the job to hide on the report.  Is there another way to do this without using IF statements, which prevents the report from loading because it runs out of memory (there are 50K jobs in the table).
3 REPLIES 3
CityRoamer
New Member

Hi - I do not have the option to 'Show items with no data':

 

CityRoamer_0-1659126981424.png

 

I am assuming this is because it is a calculated field?

CityRoamer_1-1659127023630.png

 

Hi @CityRoamer ,

 Click "Job id" ,not the measure you created.And if the visual only created by measure ,it could not be used.

vluwangmsft_0-1659318634235.png

 

 

Best Regards

Lucien

 

v-luwang-msft
Community Support
Community Support

HI @CityRoamer ,

Click  show items with no data,you will see the measure even it is blank.

 

vluwangmsft_0-1659076058688.png

vluwangmsft_1-1659076105625.png

 

 

Output result:

vluwangmsft_2-1659076117392.png

 

Did I answer your question? Mark my post as a solution!


Best Regards

Lucien

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.