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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

How to limit date axis from today to last value of data

Hello,

 

I'm having a problem displaying my data.

What I want is to show the X axis from today to the date with last value from another table. What I have is an overflow of dates as this (red line indicating where I want X axis to stop).

BestUser1_0-1642153255908.png

Additionally, my data model looks like this

[Date]1---*[valuetable]

And my measure like this:

CALCULATE(SUM('valuetable'[Values]),'valuetable'[Date]>=TODAY(),USERELATIONSHIP('valuetable'[Date],'Date'[Date]))
 
My date table covers a period from 1.1.2000 to 1.1.2040
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

Change Categorical to Continuous:

continuous.gif

 

 

Best Regards,
Eyelyn Qin
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

4 REPLIES 4
Anonymous
Not applicable

Hi @Anonymous ,

 

Change Categorical to Continuous:

continuous.gif

 

 

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

Anonymous
Not applicable

Hi @Anonymous ,

 

Please create a flag measure:

Measure = 
var _maxdate=MAXX(ALL('Date'),[Date])
return 
IF(MAX('valuetable'[Date])>=TODAY()&& MAX('valuetable'[Date])<=_maxdate,1,0)

And drag it to filter pane, set as "is 1":

Eyelyn9_0-1642485347546.png

 

 

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

Anonymous
Not applicable

Hi!

 

This almost worked for me. Is there an easy alternation here so I can display blank dates as well? This measure does cut the date to last date of valuetable but it also erases empty values from X axis. 

freginier
Super User
Super User

Measure = 
SUMX( 
    SUMMARIZE(
        FILTER(
            'Table', 
            'Table'[Date]<TODAY()
        ),
        'Table'[Date],
        "@sum",SUM('Table'[Amount])
    ),
[@sum]
)

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.