Using DateTime columns from Kusto in Power BI - Part 1

Published Feb 13 2022 06:34 AM 1,332 Views
Microsoft

Power BI Slicers and Filters on Kusto DateTime columns

 

This is a multi-part blog post about using DateTime columns in PBI.

It is an area that was traditionally not a focus in PBI.

Classic BI is more interested in daily, monthly, quarterly, and yearly summaries and less in Hours, Minutes, and seconds.

Users of Kusto are many times interested in activities over a very short period of time and in high time accuracy.

 

Relative time slicer

 

If you want to investigate a time period that is relative to the current time, you can use the relative time type of slicer on a DateTime column. Note that the option for relative time is offered also for date columns but it will not work.

The selection can be in the last N hours or last N minutes.

 

DanyHoter_0-1644762031176.png

 

 

 

Using the table TransformedSysLogs in the help cluster

With .show queries in the help database you can see a query like: 

 

["TransformedSysLogs"]

| where ((["SysLogTimestamp"]) <= ((datetime(2022-02-13 12:58:16.0000000)))) and (((["SysLogTimestamp"]) >= ((datetime(2022-02-13 11:58:16.0000000)))))

| summarize ["a0"]=count() by ["name"], ["facility"], ["host"], ["hostname"]

| limit 1000001

This query is extracting exactly the rows that you want in the most efficient way.

Datetime filters

What if the time period you want to investigate is not in the last hours or minutes but is a specific time period like Yesterday between 14:45 and 15:00.

No standard slicer in PBI are able to extract this specific period.

Your only option is to use filters which will appear in the filter pane and not on the page itself.

You first drag the DateTime column to the relevant filter location - Visual, this page or all pages.

DanyHoter_1-1644762031178.png

 

Basic filtering is the default but it is not usable and also can be very expensive to setup, as it tries to retrieve all values for the DateTime column. This may fail on a large table  

DanyHoter_2-1644762031179.png

 

Immediately after you drag the column to the filter pane (Don’t wait for the operation to complete), change the type of filter from basic to advanced and enter the starting time and end time

DanyHoter_3-1644762031182.png

The user of the report can select any time period using this filter.

You can be as accurate as a single minute.

 

*Advanced topic

The query to obtain all the values will run to completion the first time and can consume huge resources.

If you want to avoid wasting resources, you can follow these steps:

      - Insert a step in the query that will keep the top 100 rows

DanyHoter_0-1644764491753.png

 

      - Apply the filter in advanced mode

      - Edit the query and remove the keep top rows step

Using this method obtaining the "full" list of DateTime values will run on a small number of rows.

 

%3CLINGO-SUB%20id%3D%22%5C%26quot%3Blingo-sub-3159392%5C%26quot%3B%22%20slang%3D%22%5C%26quot%3Ben-US%5C%26quot%3B%22%3EUsing%20DateTime%20columns%20from%20Kusto%20in%20Power%20BI%20-%20Part%201%26lt%3B%5C%2Flingo-sub%26gt%3B%3CLINGO-BODY%20id%3D%22%5C%26quot%3Blingo-body-3159392%5C%26quot%3B%22%20slang%3D%22%5C%26quot%3Ben-US%5C%26quot%3B%22%3E%3CH1%20id%3D%22%5C%26quot%3Btoc-hId--2134586071%5C%26quot%3B%22%20id%3D%22toc-hId--2134585387%22%20id%3D%22toc-hId--2134585387%22%20id%3D%22toc-hId--2134585387%22%3EPower%20BI%20Slicers%20and%20Filters%20on%20Kusto%20DateTime%20columns%26lt%3B%5C%2FH1%26gt%3B%5Cn%3CP%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FP%3E%3CP%3EThis%20is%20a%20multi-part%20blog%20post%20about%20using%20DateTime%20columns%20in%20PBI.%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FP%3E%3CP%3EIt%20is%20an%20area%20that%20was%20traditionally%20not%20a%20focus%20in%20PBI.%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FP%3E%3CP%3EClassic%20BI%20is%20more%20interested%20in%20daily%2C%20monthly%2C%20quarterly%2C%20and%20yearly%20summaries%20and%20less%20in%20Hours%2C%20Minutes%2C%20and%20seconds.%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FP%3E%3CP%3EUsers%20of%20Kusto%20are%20many%20times%20interested%20in%20activities%20over%20a%20very%20short%20period%20of%20time%20and%20in%20high%20time%20accuracy.%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FP%3E%3CP%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FP%3E%3C%2FH1%3E%3CH2%20id%3D%22%5C%26quot%3Btoc-hId--1444024597%5C%26quot%3B%22%20id%3D%22toc-hId--1444023913%22%20id%3D%22toc-hId--1444023913%22%20id%3D%22toc-hId--1444023913%22%3ERelative%20time%20slicer%26lt%3B%5C%2FH2%26gt%3B%5Cn%3CP%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FP%3E%3CP%3EIf%20you%20want%20to%20investigate%20a%20time%20period%20that%20is%20relative%20to%20the%20current%20time%2C%20you%20can%20use%20the%20relative%20time%20type%20of%20slicer%20on%20a%20DateTime%20column.%20Note%20that%20the%20option%20for%20relative%20time%20is%20offered%20also%20for%20date%20columns%20but%20it%20will%20not%20work.%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FP%3E%3CP%3EThe%20selection%20can%20be%20in%20the%20last%20N%20hours%20or%20last%20N%20minutes.%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FP%3E%3CP%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%5C%26quot%3Blia-inline-image-display-wrapper%22%20lia-image-align-inline%3D%22%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Fgxcuf89792%2F%5C%26quot%3Bhttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F347624iE67A237DEF790CCD%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%5C%26quot%3B%22%20role%3D%22%5C%26quot%3Bbutton%5C%26quot%3B%22%20title%3D%22DanyHoter_0-1644762031176.png%22%20alt%3D%22%5C%26quot%3BDanyHoter_0-1644762031176.png%5C%26quot%3B%22%20%2F%3E%26lt%3B%5C%2Fspan%26gt%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FP%3E%3CP%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FP%3E%3CP%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FP%3E%3CP%3EUsing%20the%20table%20TransformedSysLogs%20in%20the%20help%20clus%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FP%3E%3CP%3EWith%20.show%20queries%20in%20the%20help%20database%20you%20can%20see%20a%20query%20like%3A%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FP%3E%3CP%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FP%3E%3CP%3E%5B%22TransformedSysLogs%22%5D%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FP%3E%3CP%3E%7C%20where%20((%5B%22SysLogTimestamp%22%5D)%20%26lt%3B%3D%20((datetime(2022-02-13%2012%3A58%3A16.0000000))))%20and%20(((%5B%22SysLogTimestamp%22%5D)%20%26gt%3B%3D%20((datetime(2022-02-13%2011%3A58%3A16.0000000)))))%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FP%3E%3CP%3E%7C%20summarize%20%5B%22a0%22%5D%3Dcount()%20by%20%5B%22name%22%5D%2C%20%5B%22facility%22%5D%2C%20%5B%22host%22%5D%2C%20%5B%22hostname%22%5D%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FP%3E%3CP%3E%7C%20limit%201000001%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FP%3E%3CP%3EThis%20query%20is%20extracting%20exactly%20the%20rows%20that%20you%20want%20in%20the%20most%20efficient%20way.%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FP%3E%3C%2FH2%3E%3CH1%20id%3D%22%5C%26quot%3Btoc-hId--1454527701%5C%26quot%3B%22%20id%3D%22toc-hId--1454527017%22%20id%3D%22toc-hId--1454527017%22%20id%3D%22toc-hId--1454527017%22%3EDatetime%20filters%26lt%3B%5C%2FH1%26gt%3B%5Cn%3CP%3EWhat%20if%20the%20time%20period%20you%20want%20to%20investigate%20is%20not%20in%20the%20last%20hours%20or%20minutes%20but%20is%20a%20specific%20time%20period%20like%20Yesterday%20between%2014%3A45%20and%2015%3A00.%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FP%3E%3CP%3ENo%20standard%20slicer%20in%20PBI%20are%20able%20to%20extract%20this%20specific%20period.%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FP%3E%3CP%3EYour%20only%20option%20is%20to%20use%20filters%20which%20will%20appear%20in%20the%20filter%20pane%20and%20not%20on%20the%20page%20itself.%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FP%3E%3CP%3EYou%20first%20drag%20the%20DateTime%20column%20to%20the%20relevant%20filter%20location%20-%20Visual%2C%20this%20page%20or%20all%20pages.%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%5C%26quot%3Blia-inline-image-display-wrapper%22%20lia-image-align-inline%3D%22%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Fgxcuf89792%2F%5C%26quot%3Bhttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F347626i522646EE61D0BC49%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%5C%26quot%3B%22%20role%3D%22%5C%26quot%3Bbutton%5C%26quot%3B%22%20title%3D%22DanyHoter_1-1644762031178.png%22%20alt%3D%22%5C%26quot%3BDanyHoter_1-1644762031178.png%5C%26quot%3B%22%20%2F%3E%26lt%3B%5C%2Fspan%26gt%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FP%3E%3CP%3EBasic%20filtering%20is%20the%20default%20but%20it%20is%20not%20usable%20and%20also%20can%20be%20very%20expensive%20to%20setup%2C%20as%20it%20tries%20to%20retrieve%20all%20values%20for%20the%20DateTime%20column.%20This%20may%20fail%20on%20a%20large%20table%20%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%5C%26quot%3Blia-inline-image-display-wrapper%22%20lia-image-align-inline%3D%22%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Fgxcuf89792%2F%5C%26quot%3Bhttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F347625i49A768580E0D0145%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%5C%26quot%3B%22%20role%3D%22%5C%26quot%3Bbutton%5C%26quot%3B%22%20title%3D%22DanyHoter_2-1644762031179.png%22%20alt%3D%22%5C%26quot%3BDanyHoter_2-1644762031179.png%5C%26quot%3B%22%20%2F%3E%26lt%3B%5C%2Fspan%26gt%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FP%3E%3CP%3EImmediately%20after%20you%20drag%20the%20column%20to%20the%20filter%20pane%20(Don%E2%80%99t%20wait%20for%20the%20operation%20to%20complete)%2C%20change%20the%20type%20of%20filter%20from%20basic%20to%20advanced%20and%20enter%20the%20starting%20time%20and%20end%20time%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%5C%26quot%3Blia-inline-image-display-wrapper%22%20lia-image-align-inline%3D%22%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Fgxcuf89792%2F%5C%26quot%3Bhttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F347628i43AAACDF0ED97CAF%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%5C%26quot%3B%22%20role%3D%22%5C%26quot%3Bbutton%5C%26quot%3B%22%20title%3D%22DanyHoter_3-1644762031182.png%22%20alt%3D%22%5C%26quot%3BDanyHoter_3-1644762031182.png%5C%26quot%3B%22%20%2F%3E%26lt%3B%5C%2Fspan%26gt%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EThe%20user%20of%20the%20report%20can%20select%20any%20time%20period%20using%20this%20filter.%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FP%3E%3CP%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FP%3E%3CP%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%5C%26quot%3Blia-inline-image-display-wrapper%22%20lia-image-align-inline%3D%22%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Fgxcuf89792%2F%5C%26quot%3Bhttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F347629i6C9299DF2B8E1029%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%5C%26quot%3B%22%20role%3D%22%5C%26quot%3Bbutton%5C%26quot%3B%22%20title%3D%22DanyHoter_4-1644762031183.png%22%20alt%3D%22%5C%26quot%3BDanyHoter_4-1644762031183.png%5C%26quot%3B%22%20%2F%3E%26lt%3B%5C%2Fspan%26gt%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FP%3E%3CP%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FP%3E%3CP%3EYou%20can%20be%20as%20accurate%20as%20a%20single%20minute.%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FP%3E%3CP%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FP%3E%3CP%3EThe%20query%20to%20obtain%20all%20the%20values%20will%20still%20run%20the%20first%20time%20and%20can%20consume%20huge%20resources.%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FP%3E%3CP%3EIf%20you%20want%20to%20avoid%20wasting%20resources%2C%20you%20can%20insert%20a%20step%20in%20the%20query%20that%20will%20keep%20the%20top%20100%20rows%2C%20apply%20the%20filter%20in%20advanced%20mode%20and%20then%20go%20back%20to%20the%20query%20and%20remove%20the%20keep%20top%20rows%20step.%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FP%3E%3CP%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%26lt%3B%5C%2Flingo-body%26gt%3B%3CLINGO-TEASER%20id%3D%22%5C%26quot%3Blingo-teaser-3159392%5C%26quot%3B%22%20slang%3D%22%5C%26quot%3Ben-US%5C%26quot%3B%22%3E%3C%2FLINGO-TEASER%3E%3C%2FP%3E%3CP%3EPower%20BI%20does%20not%20have%20many%20features%20to%20handle%20DateTime%20columns.%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FP%3E%3CP%3EIn%20these%20blogs%20I'll%20cover%20what%20is%20available%20out%20of%20the%20box%20%2B%20some%20tricks%26lt%3B%5C%2FP%26gt%3B%26lt%3B%5C%2Flingo-teaser%26gt%3B%3C%2FP%3E%3C%2FH1%3E%3C%2FLINGO-BODY%3E%3C%2FLINGO-SUB%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3159392%22%20slang%3D%22en-US%22%3EUsing%20DateTime%20columns%20from%20Kusto%20in%20Power%20BI%20-%20Part%201%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3159392%22%20slang%3D%22en-US%22%3E%3CH1%20id%3D%22toc-hId--2134586071%22%20id%3D%22toc-hId-1032985816%22%3EPower%20BI%20Slicers%20and%20Filters%20on%20Kusto%20DateTime%20columns%3C%2FH1%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20is%20a%20multi-part%20blog%20post%20about%20using%20DateTime%20columns%20in%20PBI.%3C%2FP%3E%0A%3CP%3EIt%20is%20an%20area%20that%20was%20traditionally%20not%20a%20focus%20in%20PBI.%3C%2FP%3E%0A%3CP%3EClassic%20BI%20is%20more%20interested%20in%20daily%2C%20monthly%2C%20quarterly%2C%20and%20yearly%20summaries%20and%20less%20in%20Hours%2C%20Minutes%2C%20and%20seconds.%3C%2FP%3E%0A%3CP%3EUsers%20of%20Kusto%20are%20many%20times%20interested%20in%20activities%20over%20a%20very%20short%20period%20of%20time%20and%20in%20high%20time%20accuracy.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--1444024597%22%20id%3D%22toc-hId-1723547290%22%3ERelative%20time%20slicer%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20you%20want%20to%20investigate%20a%20time%20period%20that%20is%20relative%20to%20the%20current%20time%2C%20you%20can%20use%20the%20relative%20time%20type%20of%20slicer%20on%20a%20DateTime%20column.%20Note%20that%20the%20option%20for%20relative%20time%20is%20offered%20also%20for%20date%20columns%20but%20it%20will%20not%20work.%3C%2FP%3E%0A%3CP%3EThe%20selection%20can%20be%20in%20the%20last%20N%20hours%20or%20last%20N%20minutes.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22DanyHoter_0-1644762031176.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F347624iE67A237DEF790CCD%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22DanyHoter_0-1644762031176.png%22%20alt%3D%22DanyHoter_0-1644762031176.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EUsing%20the%20table%20TransformedSysLogs%20in%20the%20help%20clus%3C%2FP%3E%0A%3CP%3EWith%20.show%20queries%20in%20the%20help%20database%20you%20can%20see%20a%20query%20like%3A%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%5B%22TransformedSysLogs%22%5D%3C%2FP%3E%0A%3CP%3E%7C%20where%20((%5B%22SysLogTimestamp%22%5D)%20%26lt%3B%3D%20((datetime(2022-02-13%2012%3A58%3A16.0000000))))%20and%20(((%5B%22SysLogTimestamp%22%5D)%20%26gt%3B%3D%20((datetime(2022-02-13%2011%3A58%3A16.0000000)))))%3C%2FP%3E%0A%3CP%3E%7C%20summarize%20%5B%22a0%22%5D%3Dcount()%20by%20%5B%22name%22%5D%2C%20%5B%22facility%22%5D%2C%20%5B%22host%22%5D%2C%20%5B%22hostname%22%5D%3C%2FP%3E%0A%3CP%3E%7C%20limit%201000001%3C%2FP%3E%0A%3CP%3EThis%20query%20is%20extracting%20exactly%20the%20rows%20that%20you%20want%20in%20the%20most%20efficient%20way.%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId--1454527701%22%20id%3D%22toc-hId-1713044186%22%3EDatetime%20filters%3C%2FH1%3E%0A%3CP%3EWhat%20if%20the%20time%20period%20you%20want%20to%20investigate%20is%20not%20in%20the%20last%20hours%20or%20minutes%20but%20is%20a%20specific%20time%20period%20like%20Yesterday%20between%2014%3A45%20and%2015%3A00.%3C%2FP%3E%0A%3CP%3ENo%20standard%20slicer%20in%20PBI%20are%20able%20to%20extract%20this%20specific%20period.%3C%2FP%3E%0A%3CP%3EYour%20only%20option%20is%20to%20use%20filters%20which%20will%20appear%20in%20the%20filter%20pane%20and%20not%20on%20the%20page%20itself.%3C%2FP%3E%0A%3CP%3EYou%20first%20drag%20the%20DateTime%20column%20to%20the%20relevant%20filter%20location%20-%20Visual%2C%20this%20page%20or%20all%20pages.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22DanyHoter_1-1644762031178.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F347626i522646EE61D0BC49%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22DanyHoter_1-1644762031178.png%22%20alt%3D%22DanyHoter_1-1644762031178.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBasic%20filtering%20is%20the%20default%20but%20it%20is%20not%20usable%20and%20also%20can%20be%20very%20expensive%20to%20setup%2C%20as%20it%20tries%20to%20retrieve%20all%20values%20for%20the%20DateTime%20column.%20This%20may%20fail%20on%20a%20large%20table%20%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22DanyHoter_2-1644762031179.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F347625i49A768580E0D0145%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22DanyHoter_2-1644762031179.png%22%20alt%3D%22DanyHoter_2-1644762031179.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EImmediately%20after%20you%20drag%20the%20column%20to%20the%20filter%20pane%20(Don%E2%80%99t%20wait%20for%20the%20operation%20to%20complete)%2C%20change%20the%20type%20of%20filter%20from%20basic%20to%20advanced%20and%20enter%20the%20starting%20time%20and%20end%20time%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22DanyHoter_3-1644762031182.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F347628i43AAACDF0ED97CAF%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22DanyHoter_3-1644762031182.png%22%20alt%3D%22DanyHoter_3-1644762031182.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EThe%20user%20of%20the%20report%20can%20select%20any%20time%20period%20using%20this%20filter.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22DanyHoter_4-1644762031183.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F347629i6C9299DF2B8E1029%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22DanyHoter_4-1644762031183.png%22%20alt%3D%22DanyHoter_4-1644762031183.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20can%20be%20as%20accurate%20as%20a%20single%20minute.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20query%20to%20obtain%20all%20the%20values%20will%20still%20run%20the%20first%20time%20and%20can%20consume%20huge%20resources.%3C%2FP%3E%0A%3CP%3EIf%20you%20want%20to%20avoid%20wasting%20resources%2C%20you%20can%20insert%20a%20step%20in%20the%20query%20that%20will%20keep%20the%20top%20100%20rows%2C%20apply%20the%20filter%20in%20advanced%20mode%20and%20then%20go%20back%20to%20the%20query%20and%20remove%20the%20keep%20top%20rows%20step.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-3159392%22%20slang%3D%22en-US%22%3E%3CP%3EPower%20BI%20does%20not%20have%20many%20features%20to%20handle%20DateTime%20columns.%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20these%20blogs%20I'll%20cover%20what%20is%20available%20out%20of%20the%20box%20%2B%20some%20tricks%3C%2FP%3E%3C%2FLINGO-TEASER%3E
Co-Authors
Version history
Last update:
‎Feb 13 2022 07:05 AM
Updated by: