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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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 Sage
Solution Sage

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 Sage
Solution Sage

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors