Forum Discussion
Separate Data based on date
- 6 years ago
HI, Anonymous
If you want to get it in basic data table:
1. You could use Pivot in Edit Queries
https://radacad.com/pivot-and-unpivot-with-power-bi
For your case, selected Index column then Pivot the column and choose "Don't Aggregate"
For example:
If you want to get it in visual, you could get it by matrix visual as below:
https://www.goodly.co.in/create-pivot-table-in-power-bi/
For example:
By the way, from your screenshot, why different url could be combined like below?
Best Regards,
Lin
HI, Anonymous
If you want to get it in basic data table:
1. You could use Pivot in Edit Queries
https://radacad.com/pivot-and-unpivot-with-power-bi
For your case, selected Index column then Pivot the column and choose "Don't Aggregate"
For example:
If you want to get it in visual, you could get it by matrix visual as below:
https://www.goodly.co.in/create-pivot-table-in-power-bi/
For example:
By the way, from your screenshot, why different url could be combined like below?
Best Regards,
Lin
Thanks v-lili6-msft . Actually I'm trying to filter out the rows with date and it is my another question which is Im looking an answer for. Can you please also help me on that?
I have tried as below, but it duplicates records. Can you help?
Table.AddColumn(#"Removed Top Rows", "Custom", each if Text.StartsWith([Url], "/Data/Bucket-Folder/Heritage-Bucket-Folder/") then (Text.Start([Url],Text.PositionOf([Url],"/2"))
& Text.End([Url],Text.Length([Url])-Text.PositionOf([Url],"/",Occurrence.Last)))
else [Url])What I want:
Im trying to remove date values from Url which starts with '/Data/Bucket-Folder/Heritage-Bucket-Folder/' and skip those which doesn't have one. I could manage to run the above query but it creates lots of duplicates because of mapping.
Thanks again Accepting your above solution