Forum Discussion
Build a Custom Column with two values for Year
- 6 years ago
Hi Anonymous ,
what you are trying to achieve can not be done in Power BI directly, you will have to make use of Power Query.
1. Create a table with the years you need, by using the "Enter Data"-function in Power Query. Call it e.g. Years.
2. In your Hotel-table, use the "Add Custom Column"-function, and add the Years-table. It will not be visible in the pop-up window, so you will have to manually type the name.
3. You will now see a new column labled Years(or whatever you called it), with a small Expand-button in the header of the column. Click on this, and voila.
mockupCheers,
Sturla
If this post helps, then please consider Accepting it as the solution. Kudos are nice too.
Hi Anonymous ,
what you are trying to achieve can not be done in Power BI directly, you will have to make use of Power Query.
1. Create a table with the years you need, by using the "Enter Data"-function in Power Query. Call it e.g. Years.
2. In your Hotel-table, use the "Add Custom Column"-function, and add the Years-table. It will not be visible in the pop-up window, so you will have to manually type the name.
3. You will now see a new column labled Years(or whatever you called it), with a small Expand-button in the header of the column. Click on this, and voila.
mockup
Cheers,
Sturla
If this post helps, then please consider Accepting it as the solution. Kudos are nice too.