Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hello,
I have 2 tables, FactTransaction with column TIME_TPA which is a reading time and the other Sunset_Sunrise_TPA with SUNSET SUNRISE column.
I need a new column that checks weather or not the READINGTIME is at night or during the day.
I tried with an this formula but it shows 4pm as night and 12am as day.
Hi @ItalianScallion ,
I have some doubt. Each row in vw_FactTransaction_Hourly[Time_TPA] compare to with each row in Sunset_Sunrise_TPA[Sunset]? If in row 1, there is 05:00:00 in vw_FactTransaction_Hourly[Time_TPA] and 23:00:00 in Sunset_Sunrise_TPA[Sunset], What would it output? The result is "Night"? Could you please provide more details?
How to compare daytime and night?
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
21 | |
15 | |
15 | |
11 | |
7 |
User | Count |
---|---|
25 | |
24 | |
12 | |
12 | |
12 |