We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hello,
Please, can you help me?
I have a table with three fields: Date. Time (hour without minutes), and count (times hours repeats)
I want to convert it as show in the images.
Thanks
I have this
I would like to have this
Hi @Anonymous
You can pivot your data.
let
Source = Table.FromRecords({
[#"Received Date" = #date(2023, 7, 26), #"Received Time" = #time(3, 0, 0), Count = 1],
[#"Received Date" = #date(2023, 7, 26), #"Received Time" = #time(7, 0, 0), Count = 2],
[#"Received Date" = #date(2023, 7, 30), #"Received Time" = #time(6, 0, 0), Count = 3]
}),
PivotCol = Table.Pivot(
Table.TransformColumnTypes( Source, {{"Received Time", type text}}, "en-US"),
List.Distinct(
Table.TransformColumnTypes( Source, {{"Received Time", type text}}, "en-US")[#"Received Time"]
), "Received Time", "Count", List.Sum
)
in
PivotCol
with this result
I hope this is helpful
Thanks
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 11 | |
| 10 | |
| 7 | |
| 6 | |
| 5 |