Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Sign up nowGet Fabric certified for FREE! Don't miss your chance! Learn more
Hello everyone,
I would like to get the result in the screenshot below without using the "Column From Examples" option
Thanks in advance for your help
Regards
Value
| >01/07/2023 |
| And > 31/08/2023 |
| <01/10/2022 |
| And <01/04/2023 |
| <=2500 € |
| <01/05/2023 |
| And <01/01/2023 |
| And >5000 € |
| <01/01/2023 |
| And <0 |
Solved! Go to Solution.
Hi @Mederic
This query will give you the desired result
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45Wiik1MDBONTDUNzDXNzIwMlaK1YlWcsxLUYBIKBgDZSwQMmDRZKByQwOQoBGqcpCEgQm6alsjUwMDhUdNa1BNMDDFYiFYwhCbS4BmYDMEm9pkA6XYWAA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Value = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Value", type text}}),
#"Added Custom" = Table.AddColumn(#"Changed Type", "Date", each if Text.PositionOf([Value], "/") >= 0 then Text.Select([Value], {"0".."9", "/"}) else null),
#"Added Custom1" = Table.AddColumn(#"Added Custom", "Amount", each if Text.PositionOf([Value], "/") = -1 then Text.Select([Value], {"0".."9"}) else null),
#"Changed Type1" = Table.TransformColumnTypes(#"Added Custom1",{{"Date", type date}, {"Amount", Int64.Type}})
in
#"Changed Type1"
regards
Phil
Proud to be a Super User!
Hi @Mederic
This query will give you the desired result
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45Wiik1MDBONTDUNzDXNzIwMlaK1YlWcsxLUYBIKBgDZSwQMmDRZKByQwOQoBGqcpCEgQm6alsjUwMDhUdNa1BNMDDFYiFYwhCbS4BmYDMEm9pkA6XYWAA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Value = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Value", type text}}),
#"Added Custom" = Table.AddColumn(#"Changed Type", "Date", each if Text.PositionOf([Value], "/") >= 0 then Text.Select([Value], {"0".."9", "/"}) else null),
#"Added Custom1" = Table.AddColumn(#"Added Custom", "Amount", each if Text.PositionOf([Value], "/") = -1 then Text.Select([Value], {"0".."9"}) else null),
#"Changed Type1" = Table.TransformColumnTypes(#"Added Custom1",{{"Date", type date}, {"Amount", Int64.Type}})
in
#"Changed Type1"
regards
Phil
Proud to be a Super User!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 7 | |
| 5 | |
| 4 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 13 | |
| 11 | |
| 11 | |
| 8 | |
| 6 |