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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Need to display start date(min) and end date (max) for values

Hi all,

 

Need to dilplay start date(min) and end date (max) for a job.

 

job name              startdate          enddate

job 1                      date1               date1

job1                       date2               date2

job1                       date3                date3

job 2                      date1               date1

job2                       date2               date2

job2                      date3                date3

 

Output like

jOB         START DATE          ENDDATE

JOB1    MIN(STARTDATE)     MAX(ENDDATE)

JOB1    MIN(STARTDATE)     MAX(ENDDATE)

 

 

thanks in advance

 

Ravi

5 REPLIES 5
Anonymous
Not applicable

HI @Anonymous,

You can try to use these measure formulas to get the aggregated values based on current job category:

MinStart =
CALCULATE (
    MIN ( Table[StartDate] ),
    ALLSELECTED ( Table ),
    VALUES ( Table[JobName] )
)

MaxEnd=
CALCULATE (
    MAX ( Table[EndDate] ),
    ALLSELECTED ( Table ),
    VALUES ( Table[JobName] )
)

Regards,

Xiaoxin Sheng

Anonymous
Not applicable

Hi Team,

Thanks for the response!!!

I am able to get the Max and min date but i need to use those columns to Aixis(Line chart,gantt chart) bacause it is measure can we change it to column and i am using direct query to get the data

 

 

Please help me on this..

 

Regards,

Ravi

Anonymous
Not applicable

Hi @Anonymous,

Unfortunately, power bi has limited the Dax function usage in calculate column when you are work with direct query mode. Perhaps you can use t-sql query in advanced options to expand new columns with aggregate field results in your table.

Visualize data from Azure Data Explorer using a SQL query in Power BI 

Regards,

Xiaoxin Sheng

amitchandak
Super User
Super User

@Anonymous , you can get JOb1 and Job2, Create a Min or Max measure or In a table/matrix use firs/min and last/max as summarization.

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
AlB
Community Champion
Community Champion

Hi @Anonymous 

Just place the three fields in a table visual and take the min and max for startdate and enddate

Please mark the question solved when done and consider giving kudos if posts are helpful.

Cheers 

SU18_powerbi_badge

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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