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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
mohittimpus
Helper V
Helper V

Need Repeated value in with respect to blank dates

Hello All,

I need Repeated value in with respect to blank dates below i am showing image with red color values.

 

Screenshot_17.jpg

 

 

.pbix file:

https://drive.google.com/file/d/1p-ryWXkF0kx3VkRRPtiRjccOeja8QohZ/view?usp=sharing

1 ACCEPTED SOLUTION
v-easonf-msft
Community Support
Community Support

Hi, @mohittimpus 

Try measure as below:

Measure2 = 
VAR a =
    SELECTEDVALUE ( 'Date'[Date] )
VAR b =
    CALCULATE (
        MAX ( 'Date'[Date] ),
        FILTER ( ALL ( 'Date' ), 'Date'[Date] <= a && [M] <> BLANK () )
    )
RETURN
    CALCULATE ( [M], 'Date'[Date] = b )

32.png

 

Please check my pbix file for more details.

Best Regards,
Community Support Team _ Eason

 

View solution in original post

2 REPLIES 2
v-easonf-msft
Community Support
Community Support

Hi, @mohittimpus 

Try measure as below:

Measure2 = 
VAR a =
    SELECTEDVALUE ( 'Date'[Date] )
VAR b =
    CALCULATE (
        MAX ( 'Date'[Date] ),
        FILTER ( ALL ( 'Date' ), 'Date'[Date] <= a && [M] <> BLANK () )
    )
RETURN
    CALCULATE ( [M], 'Date'[Date] = b )

32.png

 

Please check my pbix file for more details.

Best Regards,
Community Support Team _ Eason

 

amitchandak
Super User
Super User

@mohittimpus , Try a measure like

 

calculate([lead expected], filter(allselected(Table), Table[Date] = calculate(Max(Table[Date]), filter(allselected(Table), Table[Date] <=max(Table[Date]) && not (isblank([lead expected]))))))

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel

Power BI Monthly Update - May 2024

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