Forum Discussion
Issues with getting data from excel to PBI report
- 2 years ago
your code seems to work up until the last line "
#"Filled Down" = Table.FillDown(#"Added Custom1",{"Category", "Subcategory"})"
I don't seem to understand how do i insert the logic that there are multiple categories and their subcategories.
I updated the excel file i shared you in the hyperlink, so now the categories name are accurate if you delete the numbers inside the brackets next to their name, Example: EAST BLOCK(Category 1)
true value: EASTBLOCK
and the same goes for the other categories and subcategories.
Hello Syphimus99
Can we infer from your first screenshot that rows 6 through 13 belong to Category 1.1? If so, then maybe you can do something like this:
* Create a new custom column that returns Column B, but ONLY fi Column B is a Category Id, such as "1.1". I leave it up to you to write the Power Query M statement that will do that. It should return NULL if Column B is NOT a Category Id.
* Now do a Fill Down on the new column.
* Lastly, get rid of any rows where the new column = Column B.
- Syphimus992 years agoRegular Visitor
Yes, rows 6 through 13 belong to Category 1.1
I will try your method, thanks for the advice, Will update you if I manage to get it right