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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Date Range Slicer and column & linecharts

Hi

 

Kindly guide me on this

 

How can I show column & line chart based on a date range filter (Slicer)  

 

Date range format like the below shown image

697F3270-89BD-4CA9-AA0D-B064EFFCBE08.jpeg

1 ACCEPTED SOLUTION

@Anonymous 

You can use the YearMonth in your slicer and chagnet the style to "Between" under options in the formatting pane:


Fowmy_0-1700894189806.png

 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

6 REPLIES 6
Rupak_bi
Super User
Super User

unable to understand what challeges you are facing.  I am sure you put date in X axis and value in Y axis. Now what wrong going on. please elaborate.



Regards
Rupak
FOLLOW ME : https://www.linkedin.com/in/rupaksar/
Anonymous
Not applicable

Hi Rupak,

 

Many thanks for your reply.

 

Image 1 shows my graph and the date slicer. I want to change my date range slicer simlar to image 2

 

Image 1

Christ_30_0-1700891827584.png

 

Image 2

Christ_30_1-1700891935218.png

 

 

@Anonymous 

You can use the YearMonth in your slicer and chagnet the style to "Between" under options in the formatting pane:


Fowmy_0-1700894189806.png

 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Anonymous
Not applicable

Hi,

 

I tried to add the Year Month Sort, However its not working as expected.

 

It does not showing the between options

 

Christ_30_0-1700912631286.png

 

This is my Calender Table

Calendar = ADDCOLUMNS(CALENDAR(DATE(2013,1,1), DATE(YEAR(TODAY())+1,12,31))
, "Year", YEAR([Date])
 , "Quarter", QUARTER([Date])
 , "Month Num", MONTH([Date])
, "Week Num" , WEEKNUM([Date])
, "Week Day" , WEEKDAY([Date])
, "Day", DAY([Date])

, "Month", FORMAT([Date], "Mmmm")
, "Week", FORMAT([Date] , "dddd")
, "Quarter Number", "Q" & QUARTER([Date])

, "Year Month" , YEAR([Date]) & " " & FORMAT([Date], "Mmmm")
, "Year Month Sort", YEAR([Date]) & MONTH([Date])

, "Year Quarter", YEAR([Date]) & " " & "Q" & QUARTER([Date])
, "Year Quarter Sort", YEAR([Date]) & QUARTER([Date])

, "Fiscal Year", YEAR(EDATE([Date], 11))
, "Fiscal Month", Month(EDATE([Date], 11))
, "Fiscal Quarter", QUARTER(EDATE([Date], 11))
, "Fiscal Week", WEEKNUM(EDATE([Date], 11))


, "Last 6 Months" , IF(EOMONTH([Date], 0) > EOMONTH(TODAY(), -6) && [Date] <= TODAY(), TRUE())
, "Last 6 Months Complete" , IF(EOMONTH(TODAY(), 0) <> TODAY()
, IF(EOMONTH([Date], 0) > EOMONTH(TODAY(), -7) && [Date] <= EOMONTH(TODAY(), -1) , TRUE())
, IF(EOMONTH([Date], 0) > EOMONTH(TODAY(), -6) && [Date] <= TODAY(), TRUE())


))
 
Kindly advice
Thanks

@Anonymous 

Make sure the column is a number. Check out my dates table where the "Year Month No" is a number column which will allow it to be used on a slicer.


Dates = 
ADDCOLUMNS(
    CALENDAR("01/01/2020","31/12/2021"),
    "Month No" , MONTH([Date]),
    "Month Name", FORMAT([Date],"Mmmm"),
    "Year",YEAR([Date]),
    "Year Month No", INT(FORMAT([Date],"yyyymm")),
    "Year Month" , FORMAT([Date],"Mmm yyyy"),
    "Quarter No", QUARTER([Date]),
    "Quarter" , FORMAT([Date],"\QQ")
)
Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Anonymous
Not applicable

Hi,

 

Its working now. Thank you so much for the support!

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.