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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

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
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors