Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
tebtim19
Helper IV
Helper IV

Date Sortfo

Is anyone here know how to sort date for my slicer.

Doesn't look like sorted

tebtim19_0-1615566154984.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hello @tebtim19 ,

 

Sort Year Month column by Year Month# using sort by Column option

View solution in original post

8 REPLIES 8
Anonymous
Not applicable

Hello @tebtim19 ,

 

You can Right click on column in data View and sort asc and Desc.

 

Let me know if this works for your date column.

 

Hi I tried that but it doesnt work. It's also weird that I can't see my date tabel in Query

Anonymous
Not applicable

Hello @tebtim19 

 

Is it calculated column? if yes, you can't see in query editor

Its a calculated table 

 

Dates =
ADDCOLUMNS (
CALENDAR ( DATE ( 2012, 1, 1 ), DATE ( 2021, 12, 31 ) ),
"Year", YEAR ( [Date] ),
"Month", FORMAT ( [Date], "MMMM" ),
"Month #", MONTH ( [Date] ),
"Year Month", YEAR ( [Date] ) & " " & FORMAT ( [Date], "MMMM" ),
"Year Month #", YEAR ( [Date] ) * 100 + MONTH ( [Date] )
)
Anonymous
Not applicable

Hello @tebtim19 ,

 

Sort Year Month column by Year Month# using sort by Column option

Hi Thank you this solve my problem.

I have one more thing to ask.

 

I am trying to get the total number of male current employees. 

Males = COUNTROWS(FILTER('SAP Table'[Gender] = "Male"))
 
But everytime I filtered it with my year month slicer it doesn't seems to work. 
I need to this so I could also get the Average of Male. Hopw you can help 
Anonymous
Not applicable

Hello @tebtim19 ,

Try this 

males = CALCULATE(COUNTROWS(FILTER(SAP Table,SAP Table[Gender]="Male")),ALLSELECTED(Dates[Year Month]))
 

Hi Still doesn't work when I select 2021 Feb I only got 3 males, which is supposed to be 209. I think the only number counter is the count of male added, but what I need is the total number of male filtered by month year.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.