Forum Discussion
ADF pivot vs fabric dataflow pivot
- 1 year ago
I created the helper row by using Enter Data. Then I copied the generated M code into the main query manually.
But you can do it easier:
You can create it as a separate query by using Enter Data, and then appending that query to your main query by using the menu option for Append queries.
1- struggling to find the custom function in the menu and how to use it
2- and is it necessary to add a new row? there are alot of columns for me to add in the real data?
3-and since title date is not showing if no dummy row is added, how about replace the title date null values with na instead of adding a row?
3 - yep, you could try that. Perhaps that also solves 1 and 2?
Ultimately, there are probably several ways to solve the case, depending on your specific needs.
The code I made was my initial thought, based on the sample data / screenshots provided.
In essence, I think the case is about pivot with multiple value columns. Googling for "Power Query pivot with multiple value columns" might provide useful answers.
You can also consider posting in the Power BI -> Power Query forum, since the case is about using Power Query to transform the data:
https://community.fabric.microsoft.com/t5/Power-Query/bd-p/power-bi-services
It is easier to provide guidance when knowing the full nature of your actual data (e.g. knowing all columns) and more details about your specific needs. However I totally understand if you cannot share more details about the actual data online due to business confidentiality, etc.
- arkiboys21 year agoHelper IV
you have been a wonderful help. thanks ever so much.
- arkiboys21 year agoHelper IV
did you create the custom function by hand or via menu?
I tried adding the dummy row but had to copy paste your code in the script section
- frithjof_v1 year agoCommunity Champion
I created the helper row by using Enter Data. Then I copied the generated M code into the main query manually.
But you can do it easier:
You can create it as a separate query by using Enter Data, and then appending that query to your main query by using the menu option for Append queries.