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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
SoufTC
Helper I
Helper I

How to get last and first selection of Date slicer in X axis of chart or in columns of matrix

Hello Everyone,

 

I try to make a chart of a classic sum and I have for the X axis Date but this date I try to have only the last date and the first date chosen in the filter date slicer.

 

Now I get this result :

SoufTC_0-1645191042492.png

SoufTC_2-1645191090934.png

 

but what I want to have as a result a chart whith juste in X axis 2020-01-01 and 2021-03-31 ! of course I don't want to use a multiple choice drop down filter

 

I don't know if it's possible for a chart or for a column matrix ! thank you in advance for your help ^^

 

Bof,

 

 

 

1 ACCEPTED SOLUTION
v-stephen-msft
Community Support
Community Support

Hi @SoufTC ,

 

You can add a visual level filter.

First you need to create a measure.

Measure = var _max=MAXX(ALLSELECTED('Table'),[Date])
var _min=MINX(ALLSELECTED('Table'),[Date])
return 
IF(_max=MAX('Table'[Date])||_min=MAX('Table'[Date]),1)

This is the stacked column chart with no visual level filter added.

vstephenmsft_0-1645409781888.png

 

 

When you add a visual level filter.

vstephenmsft_1-1645409815420.png

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

1 REPLY 1
v-stephen-msft
Community Support
Community Support

Hi @SoufTC ,

 

You can add a visual level filter.

First you need to create a measure.

Measure = var _max=MAXX(ALLSELECTED('Table'),[Date])
var _min=MINX(ALLSELECTED('Table'),[Date])
return 
IF(_max=MAX('Table'[Date])||_min=MAX('Table'[Date]),1)

This is the stacked column chart with no visual level filter added.

vstephenmsft_0-1645409781888.png

 

 

When you add a visual level filter.

vstephenmsft_1-1645409815420.png

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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