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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
sraj
Responsive Resident
Responsive Resident

Date difference

Hi there,

 

I am trying to calculate the date difference, from the PRT_OPEN_TASK_ADD_DT to today...even if the field is existing in the table it is not seeing it.  Can someone please advise on what I might be doing wrong here?  

 

Analytics.PNG

Capture 2.PNG

 

Capture.PNG

1 ACCEPTED SOLUTION
sraj
Responsive Resident
Responsive Resident

I found my issue, I was using a new measure option instead of a new column.  That fixed my issue, thanks for responding!!

View solution in original post

2 REPLIES 2
sraj
Responsive Resident
Responsive Resident

I found my issue, I was using a new measure option instead of a new column.  That fixed my issue, thanks for responding!!

mahoneypat
Microsoft Employee
Microsoft Employee

In a measure, you need reference an aggregation of a column, so wrap your column reference in MIN or MAX.

 

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.