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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
JP_Helsinki
Frequent Visitor

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
v-jayw-msft
Community Support
Community Support

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
v-jayw-msft
Community Support
Community Support

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.

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.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast


Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.