Forum Discussion
Day,Hour,Minutes and additional parameters
hi, harshagraj
in power query make a three custome columns and use below code
for day
Date.Day([date])
for hour
Time.Hour([date])
for minute
Time.Minute([date])
or add below code in your advance editor
#"Added Custom" = Table.AddColumn(#"Changed Type", "Custom", each Date.Day([date])),
#"Added Custom1" = Table.AddColumn(#"Added Custom", "Custom.1", each Time.Hour([date])),
#"Added Custom2" = Table.AddColumn(#"Added Custom1", "Custom.2", each Time.Minute([date]))
- harshagraj2 years ago
Post Partisan
Hi Dangar332 thanks a lot for your response but i need a parameter or a slicer to be used to represent that datetime in day,hour,minute etc like this.
- Dangar3322 years ago
Resident Rockstar
hi, harshagraj
in power bi desktop go to modelling tab > new parameter >select field> drag and drop column of day,minute,hour(which we make in power query) > and select create
here column name is different from you
field parameter interface look like below
refer ARTICLE for more about Field parameter
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.