The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Dear all,
I am loading in a table of data from SQL that has this sort of format... (only more columns)
Date | Value |
05/11/2022 | a |
05/11/2022 | b |
05/11/2022 | c |
01/10/2022 | x |
01/10/2022 | y |
I need to get it into this format during the load
Date | Value 1 | Value 2 | Value 3 |
05/11/2022 | a | b | c |
01/10/2022 | x | y |
given that I don't know what the maximum number of 'Values' I am going to get is.
is anyone able to help?
kind regards
Steve
Solved! Go to Solution.
Hah - I've done it.
I created a column in the SQL using ROWCOUNT and PARTITION. Then when I loaded that table in I could use pivot in powerBI, using the new rowcount column as the column names and choosing not to aggregate the values.
Sorry if I wasted anyone's time and hopefully it will help someone else out.
Best
Steve
Hah - I've done it.
I created a column in the SQL using ROWCOUNT and PARTITION. Then when I loaded that table in I could use pivot in powerBI, using the new rowcount column as the column names and choosing not to aggregate the values.
Sorry if I wasted anyone's time and hopefully it will help someone else out.
Best
Steve
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the July 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
109 | |
68 | |
46 | |
42 |
User | Count |
---|---|
188 | |
86 | |
77 | |
74 | |
60 |