Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
102 | |
101 | |
75 | |
67 | |
61 |
User | Count |
---|---|
142 | |
106 | |
103 | |
85 | |
70 |