Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi All,
I have a situation where I have a Quarter end data for a particular column "CW_QTR_END" in my report.
So now i want to duplicate that value for all the dates in my report.
Below is the dax I've used but it is not giving me the desired result.
ideally as the dates before 31st should be filled up with the value from the 31st i.e 16.70M
Need suggestions !!!
DAX USED:
Solved! Go to Solution.
Hi @Anonymous ,
What you need is to fill in the previous date with the value of the largest date. Then you can create the following measure:
Measure = var _max=CALCULATE(MAX('Table'[Date]),ALLSELECTED('Table'))
return CALCULATE(SUM('Table'[Value]),FILTER(ALLSELECTED('Table'),[Date]=_max))
If you also need to make up by group, for example, by month, the value of the largest day of the month should be used to fill in the previous date. You can do the following:
First create a monthyear column.
Then create a measure:
Measure 2 = var _max=CALCULATE(MAX('Table'[Date]),FILTER(ALLSELECTED('Table'),[MonthYear]=MAX('Table'[MonthYear])))
return CALCULATE(SUM('Table'[Value]),FILTER(ALLSELECTED('Table'),[Date]=_max))
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
What you need is to fill in the previous date with the value of the largest date. Then you can create the following measure:
Measure = var _max=CALCULATE(MAX('Table'[Date]),ALLSELECTED('Table'))
return CALCULATE(SUM('Table'[Value]),FILTER(ALLSELECTED('Table'),[Date]=_max))
If you also need to make up by group, for example, by month, the value of the largest day of the month should be used to fill in the previous date. You can do the following:
First create a monthyear column.
Then create a measure:
Measure 2 = var _max=CALCULATE(MAX('Table'[Date]),FILTER(ALLSELECTED('Table'),[MonthYear]=MAX('Table'[MonthYear])))
return CALCULATE(SUM('Table'[Value]),FILTER(ALLSELECTED('Table'),[Date]=_max))
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks for the help.
I actually figured about another way to get the desired result. But your way is also working 👍
Somehow I have got the data but its not dynamic. It is showing me the max value i.e 34.34 for all my data points whereas I should show 16.70 here.
Any leads to resolve this?
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 35 | |
| 34 | |
| 31 | |
| 28 |
| User | Count |
|---|---|
| 136 | |
| 102 | |
| 68 | |
| 66 | |
| 58 |