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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Anonymous
Not applicable

Measure to calcuate max of Date and Time columns Using Dimension table

My Tables are in SQL Server.

Sample Dimensions : D_SalesHader (SalesHeaderId,SalesTransactionDate Date,SalesTransactionTime Time)

                                   D_Customer (CustomerId, CustName)

                                   D_Store (StoreId,StoreLocation)

                                   D_Date (DateId, Other Colmuns)

Fact Table : F_Sales(SalesHeaderId,SaleLineId,CustomerId,StoreId,DateId,SalesAmount)

Create a measure LatestTransactionDateTime in F_Sales, to get maxTransactionDateTime value from SalesTransactonDate+SalesTransactionTime

It Should show correct value if it is slice and diced by Customer Or Store in Charts. 

1 REPLY 1
v-zhangti
Community Support
Community Support

Hi, @Anonymous 

 

Can you provide sample data for testing? Sensitive information can be removed in advance. What kind of expected results do you expect? You can also show it with pictures or Excel. I look forward to your response.

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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