Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi, I am seeking help in created a calculated table whoch contains value for last 13 months.
this is the formula I am using but it is not filtering the rows
Solved! Go to Solution.
Hi @priyanath1988 ,
If you want to calculate the value for last 13 months from the given date, I suggest you to try below code.
BS_Details_Last13Months =
VAR _LAST13MONTH =
EOMONTH ( MAX ( GL_DETAIL[previous_month] ), -13 )
RETURN
CALCULATETABLE (
GL_DETAIL,
FILTER (
GL_DETAIL,
GL_DETAIL[ENTRY_DATE] >= _LAST13MONTH
&& GL_DETAIL[ENTRY_DATE] <= MAX ( GL_DETAIL[previous_month] )
)
)
My Sample:
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Where is now your problem 🙂
Proud to be a Super User!
Hi @priyanath1988 ,
If you want to calculate the value for last 13 months from the given date, I suggest you to try below code.
BS_Details_Last13Months =
VAR _LAST13MONTH =
EOMONTH ( MAX ( GL_DETAIL[previous_month] ), -13 )
RETURN
CALCULATETABLE (
GL_DETAIL,
FILTER (
GL_DETAIL,
GL_DETAIL[ENTRY_DATE] >= _LAST13MONTH
&& GL_DETAIL[ENTRY_DATE] <= MAX ( GL_DETAIL[previous_month] )
)
)
My Sample:
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
94 | |
81 | |
66 | |
58 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |