why Power Bi not sort the x Axis Values? get max value of each YearMonth

jamiguel77

Active Member
Joined
Feb 14, 2006
Messages
321
Office Version
  1. 2016
  2. 2010
  3. 2007
Platform
  1. Windows
  2. Web
hi all i have a column date/time i try transform(add a column) for get Year/Month column, but cant, in my excel column i try: added a column with this formula:

=TEXTO([@[Date & Time]],"aaaaMM")

LOTE 12 DATOS.xlsx
ABCD
1Date & TimeMonthYearInside Temp - ∞CHigh Inside Temp - ∞C
230/06/2020 00:0020200625.826.1
330/06/2020 00:1520200625.725.8
430/06/2020 00:3020200625.425.7
530/06/2020 00:4520200625.425.6
630/06/2020 01:0020200625.225.4
730/06/2020 01:1520200625.125.3
830/06/2020 01:302020062525.2
930/06/2020 01:4520200624.925.2
1030/06/2020 02:0020200624.925.1
1130/06/2020 02:1520200624.824.9
1230/06/2020 02:3020200624.624.8
1330/06/2020 02:4520200624.424.6
1430/06/2020 03:0020200624.224.5
1530/06/2020 03:1520200624.224.3
1630/06/2020 03:302020062424.2
1730/06/2020 03:452020062424.1
1830/06/2020 04:0020200623.824
Original
Cell Formulas
RangeFormula
B2:B18B2=TEXT([@[Date & Time]],"aaaaMM")


in power bi, not show sorted:

1625141836761.png


see 202006 this column would be the first... how to fix?

other question, how to get the max value of each YearMonth column?




Thanks
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

jamiguel77

Active Member
Joined
Feb 14, 2006
Messages
321
Office Version
  1. 2016
  2. 2010
  3. 2007
Platform
  1. Windows
  2. Web
More Info:

i tried:

1625142354563.png

if you see no syntax Error....
when add the column say me this error:

1625142396843.png

Any ADvice?

Thanks
 

RoryA

MrExcel MVP, Moderator
Joined
May 2, 2008
Messages
37,365
Office Version
  1. 365
  2. 2019
  3. 2016
  4. 2010
Platform
  1. Windows
  2. MacOS
Your column is DateTime not Date, so you need DateTime.ToText
 

jamiguel77

Active Member
Joined
Feb 14, 2006
Messages
321
Office Version
  1. 2016
  2. 2010
  3. 2007
Platform
  1. Windows
  2. Web
ok, worked: DateTime.ToText

why continue not sorting..? the columns?


1625149185663.png


thanks

and how to specify the Maximum Value

of this column:

1625149226481.png


thanks
 

jamiguel77

Active Member
Joined
Feb 14, 2006
Messages
321
Office Version
  1. 2016
  2. 2010
  3. 2007
Platform
  1. Windows
  2. Web

ADVERTISEMENT

Man need separate n other thread other questions?

Thanks
 

jamiguel77

Active Member
Joined
Feb 14, 2006
Messages
321
Office Version
  1. 2016
  2. 2010
  3. 2007
Platform
  1. Windows
  2. Web
Solved the ordering, now how to change sum by max?
the default is sum.
thanks
 

RoryA

MrExcel MVP, Moderator
Joined
May 2, 2008
Messages
37,365
Office Version
  1. 365
  2. 2019
  3. 2016
  4. 2010
Platform
  1. Windows
  2. MacOS

ADVERTISEMENT

If you select it in the Field list, then on the Column Tools tab of the Ribbon you can change the summarization type to Average, or you could create a new measure for the average.
 
Solution

jamiguel77

Active Member
Joined
Feb 14, 2006
Messages
321
Office Version
  1. 2016
  2. 2010
  3. 2007
Platform
  1. Windows
  2. Web
@RoryA thanks man, solved with creating a new measure.
i tried:

1625230518351.png


but not worked....

Thanks
 

jamiguel77

Active Member
Joined
Feb 14, 2006
Messages
321
Office Version
  1. 2016
  2. 2010
  3. 2007
Platform
  1. Windows
  2. Web
and i solved the ordering/sorting:

1625230657771.png
 

Forum statistics

Threads
1,141,712
Messages
5,708,008
Members
421,540
Latest member
quocbinh

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top