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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
wahidsyed2728
Regular Visitor

Only Time on X-Axis when "1D" is selected, and dates for the remaining options like 1W, 1M, 6M, 1Y

Hi Gurus,

 

I've a requirement to select any of the options like "1D", "1W", "1M", "6M", "1Y", "2Y", "Max", and "Custom", where "Custom" refers to the Custom Date Range Selection. 

Based on the above selection options, if an user clicks on the option "1D", my x-axis of the line chart shall display only TODAY's time (24hrs or the time wherever the data is available to be displayed), and for the rest of the options, it should display the corresponding dates. For the "Custom" selection, a "Date" slicer shall appear and based on the dates selected, the respective Time if it is 1 day, or Dates if it is not 1day shall be displayed over the x-axis. I'm struggling to show the time on the X-Axis, have been trying lot of things, but did not work out.

 

Need help.

 

Thanks,

Syed

5 REPLIES 5
wahidsyed2728
Regular Visitor

Hi Ibendlin,

 

We are developing something similar to the snapshot I've attached. Please check the same and lemme know.

 

Link: https://www.investing.com/indices/us-30-futures-chart?cid=1175152

 

Thanks,

Syed.

wahidsyed2728_0-1724256779544.png

 

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).

Do not include sensitive information or anything not related to the issue or question.

If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Please show the expected outcome based on the sample data you provided.

Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

lbendlin
Super User
Super User

Consider using a datetime value for the X axis and eschewing the whole options thing. Then use zoom sliders to hone in on the period you need.  The visual will automatically change the tick values.

 

There's also a custom visual called timeline slicer. might be worth a look.

 

Be aware that the cardinality will be very highe especially if you go down to second level details.

Hi lbendlin,

 

It did not work out for me. Looks like controlling the slicer has to be done explicitly using the parameters. Any idea over that will be of great help.

 

Thanks,

Syed.

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).

Do not include sensitive information or anything not related to the issue or question.

If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Please show the expected outcome based on the sample data you provided.

Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors