The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
How can i transform data with actuals and targets in same column into multiple columns where they are separated in Power BI?
Solved! Go to Solution.
1. Copy the Original table using Reference ( Right click your query in Power Query to get this) , apply filter for Target.
2. Merge ( In Power Query Home-> Combine -> Merge Queries) using the required column using the required column( like Period, Region,Market)
3. Expand and Add the required column.
4. Right click the original source and click"Enable Load" to avoid loading the unwanted data into your model.
Thanks
Raj
1. Copy the Original table using Reference ( Right click your query in Power Query to get this) , apply filter for Target.
2. Merge ( In Power Query Home-> Combine -> Merge Queries) using the required column using the required column( like Period, Region,Market)
3. Expand and Add the required column.
4. Right click the original source and click"Enable Load" to avoid loading the unwanted data into your model.
Thanks
Raj
One way would be to duplicate your query, then trim one version down to just actuals and the other down to just targets. Then you can look to join one query to the other using the common fields (looks like your first three columns, not sure if Power BI actually got round to joining on multiple columns at once so concatenate them together if needed) and it'll create new columns in your final table. Probably a more efficient way to do this, but this ought to at least work
User | Count |
---|---|
65 | |
62 | |
60 | |
54 | |
30 |
User | Count |
---|---|
180 | |
88 | |
72 | |
48 | |
46 |