cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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_
Solution Specialist
Solution Specialist

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_
Solution Specialist
Solution Specialist

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors