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
donaldo
Helper III
Helper III

Only first and last dates on x-axis

Hi all,

 

I have a table with values filtered by a standard date dimension table.

I have a date slicer setup and want to have a visual of sorts showing only the first and last date on the x-axis - instead of a continuous time series inbetween the two.

 

Is that possible?

 

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

Turn off the axis and perhaps use Card visuals to show first and last dates.

@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

3 REPLIES 3
v-kelly-msft
Community Support
Community Support

Hi @donaldo

 

I will show you a workaround:

 

Create 2 measures as below:

 

 

Measure = CALCULATE(MIN('Table'[Date]))
Measure 2 = CALCULATE(MAX('Table'[Date]))

 

Create a line chart and add date and value in the visual, then turn off the X- axis :

Annotation 2020-03-18 154503.png

Create 2 card visuals then put 2 measures above in it : category:off

Finally you will see:

 

Annotation 2020-03-18 154738.png

For the related .pbix file,pls click here.

 

Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!

Hi @v-kelly-msft 


Thanks for the solution. Sorry for the delay in answering. Covid-19 caused priorities to change - but I'm back now.

 

It might be the solution I have to go with, but the request is to not have the values in between the two dates. So ideally a bar chart with only 2 points on the X-axis and only 2 correspnding Y-values. If we span enough time the line chart or whatever inbetween will be very long.

 

There is no way to get it to show just a MIN and a MAX value?

Greg_Deckler
Super User
Super User

Turn off the axis and perhaps use Card visuals to show first and last dates.

@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

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.

Top Solution Authors