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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Syndicate_Admin
Administrator
Administrator

Line Chart with Dates

Good Companions

I have a question, I'm a power bi user but I haven't been able to get my brain on this. I have a table Rut_unicos :

Ruth | High Date be | Low date be | FEcha ult trx .

What I haven't been able to do is the typical line chart that shows when selecting the rut the low date be and the last trx in the same chart always the kill date is less than the last trx . This is a little thing that appears throughout the month and these two dates are marked on the chart. Do you understand?

I hope you can help me, thank you!

2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

Hello, good, the measurements are not accepted by the line chart friend. It doesn't let you add them as an axis. I have a calendar table.

Sahir_Maharaj
Super User
Super User

Hello @SantinoDoggyDog @Syndicate_Admin,

 

Can you please try this:

 

1. Drag a Line Chart visual onto your canvas. For the Axis, you can use a date field from a calendar table or one of the date fields from 'Rut_unicos' if they span the full range you're interested in.

 

2. For the Values, you would use a measure or an aggregation. However, since you want to display specific dates, you need to create measures that return the 'Low date be' and 'Fecha ult trx' for the selected 'Rut'. (These measures will return the dates for the selected 'Rut'. You can use CALCULATE, MAX, or MIN to get these values)

 

LowDateForSelectedRut = 
VAR SelectedRut = SELECTEDVALUE(Rut_unicos[Ruth])
RETURN
CALCULATE(
    MAX(Rut_unicos[Low date be]),
    Rut_unicos[Ruth] = SelectedRut
)
FechaUltTrxForSelectedRut = 
VAR SelectedRut = SELECTEDVALUE(Rut_unicos[Ruth])
RETURN
CALCULATE(
    MAX(Rut_unicos[FEcha ult trx]),
    Rut_unicos[Ruth] = SelectedRut
)

 

3. Add slicers to your report to allow users to select a 'Rut'. This will dynamically update the line chart to show the relevant dates.

 

4. To ensure that 'Low date be' is always less than 'Fecha ult trx', you might need to include a visual level filter or a measure that validates this condition.

 

Hope this helps! Should you require any questions or further assistance, please do not hesitate to reach out to me.


Did I answer your question? Mark my post as a solution, this will help others!

If my response(s) assisted you in any way, don't forget to drop me a "Kudos" 🙂

Kind Regards,
Sahir Maharaj
Data Scientist | Data Engineer | Data Analyst | AI Engineer
P.S. Want me to build your Power BI solution? (Yes, its FREE!)
➤ Lets connect on LinkedIn: Join my network of 15K+ professionals
➤ Join my free newsletter: Data Driven: From 0 to 100
➤ Website: https://sahirmaharaj.com
➤ About: https://sahirmaharaj.com/about.html
➤ Email: sahir@sahirmaharaj.com
➤ Want me to build your Power BI solution? Lets chat about how I can assist!
➤ Join my Medium community of 30K readers! Sharing my knowledge about data science and artificial intelligence
➤ Explore my latest project (350K+ views): Wordlit.net
➤ 100+ FREE Power BI Themes: Download Now
LinkedIn Top Voice in Artificial Intelligence, Data Science and Machine Learning

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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