This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
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 1 | Measure 2 |
| Dec-23 | 5 | |
| Jan-24 | 10 | |
| Feb-24 | 15 | |
| Mar-24 | 25 | 25 |
| Apr-24 | 25 | |
| May-24 | 25 | |
| Jun-24 | 25 |
how can i achieve using DAX.
Solved! Go to Solution.
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.
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.
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.
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.
Expertise = List.Accumulate( {Days as from Today}, {Skills and Knowledge}, (Current, Everyday) => Current & Day.LearnAndPractise(Everyday) ) |
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 38 | |
| 28 | |
| 27 | |
| 22 | |
| 18 |
| User | Count |
|---|---|
| 67 | |
| 37 | |
| 32 | |
| 26 | |
| 25 |