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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Jyaul1122
Helper III
Helper III

Repeat value after sales date

Dear Friend,

 

I have two table , calendar and sales table. and i have one Measure1 that give data upto Mar-24. on i want to display data like in Measure 2 i.e. the final data 25 (newest data based on Month) should be available upto end of date.

Like:

Calendar(Month)Measure 1Measure 2
Dec-235 
Jan-2410 
Feb-2415 
Mar-242525
Apr-24 25
May-24 25
Jun-24 25

 how can i achieve using DAX.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Jyaul1122 ,

 

I want to acknowledge valuable input provided by @ThxAlot  . Their initial ideas help guide my approach. However, I noticed that more details are needed to fully understand this issue.

 

You can create a measure as shown below.

Measure 2 = 
 var _a=CALCULATE(MAX('Date'[YYYYMM]),FILTER(ALL('Date'),[Measure 1]<>BLANK()))
 RETURN 
 IF(ISBLANK([Measure 1]),CALCULATE(LASTNONBLANKVALUE('Date'[YYYYMM],[Measure 1]),'Date'[Date]<=MAX('Date'[Date])),IF(MAX('Date'[YYYYMM])=_a,[Measure 1]))

Then the result is as follows.

vtangjiemsft_0-1715152834886.png

 

Best Regards,

Neeko Tang

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

 

 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @Jyaul1122 ,

 

I want to acknowledge valuable input provided by @ThxAlot  . Their initial ideas help guide my approach. However, I noticed that more details are needed to fully understand this issue.

 

You can create a measure as shown below.

Measure 2 = 
 var _a=CALCULATE(MAX('Date'[YYYYMM]),FILTER(ALL('Date'),[Measure 1]<>BLANK()))
 RETURN 
 IF(ISBLANK([Measure 1]),CALCULATE(LASTNONBLANKVALUE('Date'[YYYYMM],[Measure 1]),'Date'[Date]<=MAX('Date'[Date])),IF(MAX('Date'[YYYYMM])=_a,[Measure 1]))

Then the result is as follows.

vtangjiemsft_0-1715152834886.png

 

Best Regards,

Neeko Tang

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

 

 

ThxAlot
Super User
Super User

ThxAlot_0-1714924998274.png



Expertise = List.Accumulate(


        {Days as from Today},


        {Skills and Knowledge},


        (Current, Everyday) => Current & Day.LearnAndPractise(Everyday)


)



@ThxAlot ,Thanks for reply but i would like to get from March-2024.

 

Jyaul1122_0-1714973901794.png

 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.