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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
btfergie
Helper I
Helper I

Can't seem to create a line chart with date measure field

I am trying to create a line chart visual with status date on the X axis and status number on the Y axiz but can't use the measure index or date fields in the X axis.

 

This is related to a process going through different stages with an estimated duration known for each stage.

  • First I select the process type I am interested in.  This gives me the duration at each stage. 
  • Then I convert the start date to a workday index with a LOOKUPVALUE on a date table so I can count only workdays.

                   

Start WorkDayIndex Col = CALCULATE(lookupvalue('Calendar2 (EDWn)'[WorkDayIndex],'Calendar2 (EDWn)'[Calendar Date],FIRSTDATE(MoldQual_RCGL[ProcessStart])))

     

  • Adding the  Start WorkDay Index to the Completed Total duration, I get a Status WorkDayIndex measure.
Status WorkDayIndex = [Start WorkDayIndex]+sum('Mold Qual Duration Categories'[Completed Total])
 
  • I then use the Status WorkDayIndex measure to Lookup a Date.
ProjectedStatusDate = calculate(LOOKUPVALUE('Calendar2 (EDWn)'[Calendar Date],'Calendar2 (EDWn)'[WorkDayIndex],[Status WorkDayIndex]))
 

This all works in a table but I can seem to use the ProjectedStatusDate in a line chart visual.  I can't drop the field in the field box.

 

btfergie_0-1663346502954.png

btfergie_1-1663347331269.png

 

 

4 REPLIES 4
tamerj1
Community Champion
Community Champion

@btfergie 
Please conver the [ProjectStatusDate] to date data type using power query.

Thank you but it does seem to be date type.

btfergie_0-1663605119125.png

 

tamerj1
Community Champion
Community Champion

I don't beleive it is text date type.  But if it was would you suggest usaing the format function?

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.