Forum Discussion
spider_Monkey
Helper I
4 years agoVisualizing Data values between dates
Hello Friends, I am trying to build out a visulization that will show me how many reports (Reports Goal) between the time periods below. So one example would be between 1/2-1/15 there would be 1...
- 4 years ago
find the pbix attached
lbendlin
Super User
4 years agolet
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("bdDNCsMgDAfwd8m5YIwf+AaDwU47igcpZTtVaGGwt5/a2kjXS4j4U//Re3jE8fX9TAsMIIUUhERba45eYqmIEAYP9/Se1zRXQ1fcluL+sW6A+BlrtlLsbYnjdLqL+JTDPUqxz7TGvDRCte3c4pEGqyXTWy0sW3mi+2wtgmaQrbtK232b4pCq/7Y6gIIQfg==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Person = _t, Start = _t, End = _t, #"Reports Completed" = _t, #"Reports Goal" = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Start", type date}, {"End", type date}}),
#"Added Index" = Table.AddIndexColumn(#"Changed Type", "Index", 0, 1, Int64.Type),
#"Unpivoted Other Columns" = Table.UnpivotOtherColumns(#"Added Index", {"Person", "Reports Completed", "Reports Goal", "Index"}, "Attribute", "Value"),
#"Changed Type1" = Table.TransformColumnTypes(#"Unpivoted Other Columns",{{"Reports Completed", Int64.Type}, {"Reports Goal", Int64.Type}})
in
#"Changed Type1"
You have multiple intervals per person, so I had to add an index column.
spider_Monkey
Helper I
4 years agolbendlin Can you send a screen shot of the table view to see how it looks after the edit to the query editor?
- lbendlin4 years ago
Super User
find the pbix attached