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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Frequent Visitor

Show latest value on each day

Super User
Super User


Share some data to work with and show the expected result.  Please also offer an explaination vial textboxes/comments.

Ashish Mathur

Hi @Ashish_Mathur I have added the pbix file, can you take a look please?

You are replying after quite many days.  Also, pleas read my comment posted on Decemebr 8, 2023.

Ashish Mathur

I did read it. I replied to rongtiep here: but he didn't respond anymore. The reason I only reply now to your comment is because I thought rongtiep was able to help me.

I really cannot understand the expected result.  May be someone else will help you. 

Ashish Mathur
Community Support
Community Support

Hi @PowerBI_RD ,

Please have a try.

Latest Stage Value = 
VAR LastDayAvailable =
        MAX ( 'Date_table OppFieldHistory'[Date] )
VAR CurrentDates =
    FILTER (
        VALUES ( 'Date_table OppFieldHistory'[Date] ),
        'Date_table OppFieldHistory'[Date] <= LastDayAvailable
VAR LatestStage =
        MAX ( 'Date_table OppFieldHistory'[Stage] ),
        DATESYTD ( CurrentDates )
VAR Result =
        [Total Opportunities Weighted Amount OppFieldHistory],
        'Date_table OppFieldHistory'[Stage] = LatestStage,
        DATESYTD ( CurrentDates )


How to Get Your Question Answered Quickly 


If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .


Best Regards
Community Support Team _ Rongtie

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.






Helpful resources

Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.