Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I want to color the line of a chart up to a defined date. The rest of the line should be dashed.
For this I have already created two lines and superimposed them to format them differently. However, the end of the first line is disturbing, because a horizontal line is created.
Is it possible to hide the tail? or to format the same line to defined data sections?
You can hide the blue "tail" by updating your measure so it returns blank for those points (e.g., Year > 2023 or Date > TODAY()).
Pat
Thank you for your message @ppm1 . What should I change?
Please try this measure instead. Note also that filtering a whole table is not best practice, so I removed that too.
Running Total Cost Today =
VAR maxdate =
MAX ( 'PCT'[Period] )
RETURN
IF (
maxdate <= TODAY (),
CALCULATE ( SUM ( PCT[Actual Total Cost (€)] ), 'PCT'[Period] <= maxdate )
)
Pat
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
2 | |
2 | |
1 | |
1 | |
1 |