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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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_
Memorable Member
Memorable Member

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?)

View solution in original post

1 REPLY 1
Wilson_
Memorable Member
Memorable Member

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?)

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.