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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Kumardwhbidev
New Member

unable to fetch the field names.

Hi Team, 

I'm very new to PBI, recently I have installed PBI desktop in my PC, I have dowloaded superstore data and connected into PBI,

here I want to find out the shipping time, so that I want to creating a new measure,

formula is : datediff(orderdate, ship date, 'day'), so I trying to write same formula in PBI, it won't fetch the fieldnames, waht is the wrong my side, please help to resolve this.

Kumardwhbidev_0-1770132490023.png

Regards

Kumar.

1 ACCEPTED SOLUTION
GeraldGEmerick
Super User
Super User

@Kumardwhbidev Try the following:

DATEDIFF( MAX( 'SuperStoreOrders'[order_date] ) ), MAX( 'SuperStoreOrders[ship_date] ) ), "day" )

In measures, when you refer to columns you often need to specify some sort of aggregation.

View solution in original post

2 REPLIES 2
GeraldGEmerick
Super User
Super User

@Kumardwhbidev Try the following:

DATEDIFF( MAX( 'SuperStoreOrders'[order_date] ) ), MAX( 'SuperStoreOrders[ship_date] ) ), "day" )

In measures, when you refer to columns you often need to specify some sort of aggregation.

Thank you So much

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.