Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and a 50 percent discount on exams.
Get startedEarn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
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 @Himanshu_1306 ,
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 @Himanshu_1306 ,
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?
User | Count |
---|---|
96 | |
87 | |
78 | |
72 | |
68 |
User | Count |
---|---|
113 | |
105 | |
84 | |
65 | |
64 |