Forum Discussion

Nomadexchris's avatar
Nomadexchris
Frequent Visitor
5 years ago
Solved

Use DAX to show dates without data with previous available record

Hi guys, recently I was getting stuck on an issue that I would like to solve with DAX. Let's say I have a sample sales data with two products each showing their respective price whenever there is a ...
  • Jihwan_Kim's avatar
    5 years ago

    Hi, Nomadexchris 

    Please check the below picture and the sample pbix file's link down below.

     

     

    Price Update Measure =
    IF (
    ISFILTERED ( Products[Product] ) && ISFILTERED ( Dates[Date] ),
    CALCULATE (
    LASTNONBLANKVALUE ( 'Price'[Date], MAX ( 'Price'[Price] ) ),
    FILTER ( ALL ( Dates ), Dates[Date] <= MAX ( Dates[Date] ) )
    )
    )

     

     

    https://www.dropbox.com/s/yxrfqjs709fbcf4/nomadex.pbix?dl=0 

     

     

    Hi, My name is Jihwan Kim.

     

    If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

     

    Linkedin: linkedin.com/in/jihwankim1975/

    Twitter: twitter.com/Jihwan_JHKIM