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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
asdf1608
Helper V
Helper V

To how the value till today only in power BI

I am trying to convert the tableau dashboard to power BI.

In line chart, one of the line is showing value only till today's date.

For Example:

In tableau the blue line is showing data only till today's date

asdf1608_2-1681824464459.png

 

But in Power BI it is showing data continuously. How do I restrict the data till today?

 

asdf1608_0-1681824311847.png

help in this is needed .
Thanks in advance

1 ACCEPTED SOLUTION
Wilson_
Super User
Super User

Hello,

 

Without knowing anything at all about your data model, you should just need to wrap your measure in an IF function to check for the date. Something like the below should work:

IF (
    SELECTEDVALUE ( 'Dates'[Date] ) <= TODAY(),
    [Shipping Trend]
)


----------------------------------
If this post helps, please consider accepting it as the solution to help other members find it quickly. Also, don't forget to hit that thumbs up and subscribe! (Oh, uh, wrong platform?)




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

1 REPLY 1
Wilson_
Super User
Super User

Hello,

 

Without knowing anything at all about your data model, you should just need to wrap your measure in an IF function to check for the date. Something like the below should work:

IF (
    SELECTEDVALUE ( 'Dates'[Date] ) <= TODAY(),
    [Shipping Trend]
)


----------------------------------
If this post helps, please consider accepting it as the solution to help other members find it quickly. Also, don't forget to hit that thumbs up and subscribe! (Oh, uh, wrong platform?)




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 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.