Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
swaggerboy69
Helper IV
Helper IV

Weekly Data

Hi Guys,

I'm trying to create a visualization that lists the latest weekly meetings that I need to attend to.

It would automatically update the current date and time and meeting title for next week.

 

For example:

 

Date:

Date / Time: Meeting Title

September 22, 2019 at 9:00 AMSample Meeting Title
September 23, 2019 at 9:00 AMSample Meeting Title
September 24, 2019 at 9:00 AMSample Meeting Title
September 25, 2019 at 9:00 AMSample Meeting Title
September 26, 2019 at 9:00 AMSample Meeting Title
September 27, 2019 at 9:00 AMSample Meeting Title
September 28, 2019 at 9:00 AMSample Meeting Title

 

I hope you guys can help me out.

1 ACCEPTED SOLUTION

Hi @swaggerboy69 

Yes, it is possible.

As amitchandak suggested, "relative filter" should work.

Capture19.JPG

If the "date/time" column is a text column instead of a date-time column, please make some transformation in Edit queries.

Capture20.JPG

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("jdI5DoMwEAXQq4xcu5ix2ZwuB0ApSIcoCBohJEhQ5PsrS+ep/gFe98bRDXpmPR76phA8BZZEc6Z0YaZr77wb5uPclXrVvD1Xum95V3GTL2REZbCyQmW0skZlZWWDytrKFpWNlR0qWysTKjsjI6My/eVtya+fE7gBFw7vI4WD80goHFxHvnemDw==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type text) meta [Serialized.Text = true]) in type table [#"date/time" = _t, meeting = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"date/time", type text}, {"meeting", type text}}),
    #"Duplicated Column" = Table.DuplicateColumn(#"Changed Type", "date/time", "date/time - Copy"),
    #"Replaced Value" = Table.ReplaceValue(#"Duplicated Column","at","-",Replacer.ReplaceText,{"date/time - Copy"}),
    #"Split Column by Delimiter" = Table.SplitColumn(#"Replaced Value", "date/time - Copy", Splitter.SplitTextByDelimiter("-", QuoteStyle.Csv), {"date/time - Copy.1", "date/time - Copy.2"}),
    #"Changed Type1" = Table.TransformColumnTypes(#"Split Column by Delimiter",{{"date/time - Copy.1", type date}, {"date/time - Copy.2", type time}})
in
    #"Changed Type1"
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
v-juanli-msft
Community Support
Community Support

Hi @swaggerboy69 

Today is 2019/9/26, you want the visual to show meeting of the current week (2019/9/22~2019/9/9/28), 

or meeting from today to next 7 days (2019/9/26~2019/10/2)?


Best Regards
Maggie

 

 

Hello!

 

I would like it to show the weekly meetings.

So it should be (2019/9/22~2019/9/28).

 

Thank you! 

amitchandak
Super User
Super User

are you looking for relative date filtering. You can get that on filter pane. Last one week or Next one week options are available 

Screenshot 2019-09-25 22.36.40.png

Thanks! But would it be possible to show the current meetings for the week?

Sunday to Saturday.

 

Thank you!

Hi @swaggerboy69 

Yes, it is possible.

As amitchandak suggested, "relative filter" should work.

Capture19.JPG

If the "date/time" column is a text column instead of a date-time column, please make some transformation in Edit queries.

Capture20.JPG

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("jdI5DoMwEAXQq4xcu5ix2ZwuB0ApSIcoCBohJEhQ5PsrS+ep/gFe98bRDXpmPR76phA8BZZEc6Z0YaZr77wb5uPclXrVvD1Xum95V3GTL2REZbCyQmW0skZlZWWDytrKFpWNlR0qWysTKjsjI6My/eVtya+fE7gBFw7vI4WD80goHFxHvnemDw==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type text) meta [Serialized.Text = true]) in type table [#"date/time" = _t, meeting = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"date/time", type text}, {"meeting", type text}}),
    #"Duplicated Column" = Table.DuplicateColumn(#"Changed Type", "date/time", "date/time - Copy"),
    #"Replaced Value" = Table.ReplaceValue(#"Duplicated Column","at","-",Replacer.ReplaceText,{"date/time - Copy"}),
    #"Split Column by Delimiter" = Table.SplitColumn(#"Replaced Value", "date/time - Copy", Splitter.SplitTextByDelimiter("-", QuoteStyle.Csv), {"date/time - Copy.1", "date/time - Copy.2"}),
    #"Changed Type1" = Table.TransformColumnTypes(#"Split Column by Delimiter",{{"date/time - Copy.1", type date}, {"date/time - Copy.2", type time}})
in
    #"Changed Type1"
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

There is a this week option. Is that not working for you

 

Screenshot 2019-09-26 17.49.34.png

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.