Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and a 50 percent discount on exams.
Get startedEarn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi everyone,
I was just wondering if anyone can advise the best/efficient way to calculate frequency based on continuous dates and record id.
Scenario
Business Logic
SELECT [Customer ID] ,[CheckinDate] ,[CheckOutDate] ,[TotalDaysInHotel] ,[Customer type ]---This is alias table and is what we're trying to calculate(Frequency) FROM [Dev].[dbo].[Customer] WHERE [Customer ID] = '1'
Anything else with earlier, [CheckOutDate] than, [CheckinDate] is Data Quality issue as is not logically possible
I have attached the final results with Alias column [Customer type ] which is a result of above business logic
Many thanks for your help in advance.
HI @mydatastories,
If you can please share some sample data/pbix file (it should has same structure as original file) and expected result to help us clarify your requirement and test to coding formula.
Regards,
Xiaoxin Sheng
Hi everyone,
I was just wondering if anyone can advise the best/efficient way to calculate frequency based on continuous dates and record id.
Scenario
Business Logic
SELECT [Customer ID]
,[CheckinDate]
,[CheckOutDate]
,[TotalDaysInHotel]
FROM [Dev].[dbo].[Customer]
Anything else with earlier ,[CheckOutDate]than ,[CheckinDate] is Data Quality issue as is not logically possible
I have attached the final results with Alias column [Customer type ] which is a result of above business logic
Many thanks for your help in advance.