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

jamiguel77

Active Member
Joined
Feb 14, 2006
Messages
387
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

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
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
 
Upvote 0
Your column is DateTime not Date, so you need DateTime.ToText
 
Upvote 0
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
 
Upvote 0
Man need separate n other thread other questions?

Thanks
 
Upvote 0
Solved the ordering, now how to change sum by max?
the default is sum.
thanks
 
Upvote 0
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.
 
Upvote 0
Solution
@RoryA thanks man, solved with creating a new measure.
i tried:

1625230518351.png


but not worked....

Thanks
 
Upvote 0

Forum statistics

Threads
1,223,707
Messages
6,174,000
Members
452,542
Latest member
Bricklin

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
Back
Top