Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Hi,
why the calculate function doesn't return any values in the 4th column?
Hi @maciejsok ,
Please consider adding a separate date table to your model for built in time intelligence functions.
https://www.datacamp.com/tutorial/how-to-create-date-tables-in-power-bi-tutorial
@maciejsok Probably because it is a single table model that you are working with. You can do a Previous Month calculation using something like this instead:
Value PM =
VAR __Date = MAX('Table'[Date])
VAR __EndDate = EOMONTH(__Date,-1)
VAR __StartDate = DATE(YEAR(__EndDate),MONTH(__EndDate),1)
VAR __Table = FILTER(ALLSELECTED('Table'),[Date]>=__StartDate && [Date]<=__EndDate)
RETURN
SUMX(__Table,[Value])
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
90 | |
87 | |
84 | |
68 | |
49 |
User | Count |
---|---|
131 | |
111 | |
96 | |
71 | |
67 |