Question: I am trying to create two custom column for flag in in Power query .On the basis County ,Year , month I am trying to find the Latest month in a country Flag and latest common month available in all the country.The data looks like below:
[![enter image description here](https://i.stack.imgur.com/pK80d.png)](https://i.stack.imgur.com/pK80d.png)

I have tried below measure...:
=var year\_x= CALCULATE(MAX([Year]),ALLEXCEPT('tblename','tablename'[Country]))
var month\_x = CALCULATE(max([Month No]),FILTER(ALLEXCEPT('tablename','tablename'[CountryI]),'tablename'[Year]=year\_x))

return month\_x

But this will not solve my problem as I want to create one custom flag in the power query.I know we can do this in Power BI...but no idea in Excel power query

Please help me to find one option for this

Answer: 
you may want to install the dependencies
npm i @babel/preset-react @babel/preset-env @babel/plugin-transform-react-jsx @babel/plugin-syntax-jsx -D
You need to install @babel/preset-react as mwebi said:

```
npm install --save-dev @babel/preset-react

```

Also, if you bootstrapped your react app using create-react-app script, it will ignore a babel config.

You must eject the app (not recommended) or create ground up yourself.