March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi, The first image is the time column I have, i wnated to have it time range (02:03)like the second image. Please share your ideas to achieve this. Thanks
Solved! Go to Solution.
not sure if I understood you correctly but look at the file
@Ahmedx Thank you so much for spending your time and helping me out. I can create a table using this query. How can I create a calculated colum in the fact table using the hour column?.
Can you please share your demo input and expected output!
The first image is the input i have in a table, its an hour column.
I want an calculated column in the same table showing time range like the 2nd image for the Input( 1st image).
Thanks @Ahmedx
not sure if I understood you correctly but look at the file
pls try this
TimePriod =
SELECTCOLUMNS (
ADDCOLUMNS (
GENERATESERIES ( TIME ( 0, 0, 0 ), TIME ( 23, 0, 0 ), TIME ( 1, 0, 0 ) ),
"TimePriod",
FORMAT ( [Value], "hh:mm" ) & " - "
& FORMAT ( [Value] + TIME ( 1, 0, 0 ), "hh:mm" )
),
"TimePriod", [TimePriod]
)
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
89 | |
84 | |
70 | |
51 |
User | Count |
---|---|
206 | |
143 | |
97 | |
79 | |
68 |