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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
joew98
Frequent Visitor

Conditional formatting latest date on X Axis off by one day

Hi,

I am trying to conditionally format the X Axis on my line chart so the max value is the latest date in the column 'exportDate' but when I apply the formatting it shows the day prior to the latest date instead. The portion of the line chart still shows the data for the latest date but I cannot hover over it to show. E.g. it shows the 3rd July rather than 4th. When conditional formatting is not applied the data shows up until the 4th.

 

I use the conditional formatting as a way to show a date that has no entry in my table as a zero on the chart rather than there being no data point for that date.

 

Any help would be appreciated.

 

Thanks.

 

No conditional formatting

Screenshot 2023-07-05 103512.png

 

Conditional formatting

Screenshot 2023-07-05 103538.png

 

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

Hi  @joew98 ,

I created some data:

vyangliumsft_0-1688713096928.png

 

Here are the steps you can follow:

1. Create measure.

Flag =
IF(
    MAX('Table'[Date])<=TODAY()-1,1,0)

2. Place [Flag]in Filters, set is=1, apply filter.

vyangliumsft_1-1688713096929.png

3. Result:

vyangliumsft_2-1688713128112.png

 

 

Best Regards,

Liu Yang

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-yangliu-msft
Community Support
Community Support

Hi  @joew98 ,

I created some data:

vyangliumsft_0-1688713096928.png

 

Here are the steps you can follow:

1. Create measure.

Flag =
IF(
    MAX('Table'[Date])<=TODAY()-1,1,0)

2. Place [Flag]in Filters, set is=1, apply filter.

vyangliumsft_1-1688713096929.png

3. Result:

vyangliumsft_2-1688713128112.png

 

 

Best Regards,

Liu Yang

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

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.