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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

July Newsletter

Fabric Community Update - July 2024

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