cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

Chart to display period based on a specific series

Hi,

 

Im trying to figure out how I could limit the displayed period based on a specific series.

 

1. I have a cumulative series ICM cumulative , that calculates the values from ICM cashflow. When the ICM cashflow does not have any data for the future periods, the cumulative line is drawn horizontally till the dates in my date table run out. 

 

Question: How could I add a check, that it will only display the value / period until the latest ICM cashflow data / Date and not the "flat line" of the cumulative? 

 

JP_Helsinki_1-1592997298149.png

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Chart to display period based on a specific series

Hi @JP_Helsinki ,

 

You could create a measure like

IF(SELECTEDVALUE('axis'[date])>=MIN('period'[date])&&SELECTEDVALUE('axis'[date])<=MAX('period'[date]),1,0)

Add the  measure to visual filter where measure=1 and it will filter out the expected visual.

 

Best Regards,

Jay

 

Community Support Team _ Jay Wang

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

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

2 REPLIES 2
Highlighted
Super User IV
Super User IV

Re: Chart to display period based on a specific series

Hi @JP_Helsinki ,

 

check this out.

https://www.sqlbi.com/articles/hiding-future-dates-for-calculations-in-dax/

 

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

I work at KUMAVISION AG , one of the world's largest
implementation partners for Microsoft Dynamics. #BetterTogether
"Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website

Highlighted
Community Support
Community Support

Re: Chart to display period based on a specific series

Hi @JP_Helsinki ,

 

You could create a measure like

IF(SELECTEDVALUE('axis'[date])>=MIN('period'[date])&&SELECTEDVALUE('axis'[date])<=MAX('period'[date]),1,0)

Add the  measure to visual filter where measure=1 and it will filter out the expected visual.

 

Best Regards,

Jay

 

Community Support Team _ Jay Wang

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

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

Helpful resources

Announcements

August Community Highlights

Check out a full recap of the month!

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power BI

Join us for an in-depth look at the new Power BI features and capabilities at the free Microsoft Business Applications Launch Event.

Top Kudoed Authors