Skip to content

Commit

Permalink
1025
Browse files Browse the repository at this point in the history
  • Loading branch information
no-arbitrage committed Nov 19, 2024
1 parent 7381031 commit e2bb96b
Show file tree
Hide file tree
Showing 12 changed files with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion _posts/2024-11-18-How-to-Diversify-your-investment.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ If you would like to use my method, you can copy past the csv data to replace th
PowerQuery code is here ( in case you are interested). I’ve wrote my own code to make this query dynamic, able to process your custom data, most likely with different table headings (asset tickers) from mine.

```jsx
{% raw %}
{{"Date.1", type date}}


let
Source = Excel.CurrentWorkbook(){[Name="Table2"]}[Content],
Splitbydelimiter = Table.SplitColumn(Source, "Date", Splitter.SplitTextByEachDelimiter({" "}, QuoteStyle.Csv, false), {"Date.1", "Date.2"}),
Expand All @@ -116,9 +120,11 @@ let
transform = List.Transform( columnheader, each {_, type number} ),

TypeChange = Table.TransformColumnTypes(withDates,transform),
TypeChange2 = Table.TransformColumnTypes(TypeChange,{{"Date.1", type date}})
TypeChange2 = Table.TransformColumnTypes(TypeChange, {% raw %} {{"Date.1",type date}}) {% endraw %}
in
TypeChange2


```

### Step #3 : Using Solver to get the allocation.
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added assets/pbix/.241103_AdventureWorks_na.pbix.icloud
Binary file not shown.
Binary file removed assets/pbix/241103_AdventureWorks_na.pbix
Binary file not shown.
Binary file added assets/videos/.devstories.webm.icloud
Binary file not shown.
Binary file removed assets/videos/devstories.webm
Binary file not shown.
Binary file added assets/xlsx/.Basket-analysis-Basic.xlsx.icloud
Binary file not shown.
Binary file removed assets/xlsx/Basket-analysis-Basic.xlsx
Binary file not shown.
Binary file removed no-arbitrage.github.io.7z
Binary file not shown.

0 comments on commit e2bb96b

Please sign in to comment.