Date tables in Power BI for time intelligence calculations are a must for the performance and simplicity of DAX. Traditionally, date tables have been created using M or DAX. But when working in Microsoft Fabric, especially for Direct Lake datasets, D...
fabric.guru3 min read
Not sure if your experience was different, however I had to drop the .date off the following two statements to work correctly as the comparison wasn't returning true for Today.
df['IsTodayFlag']=(df['Date'] == today).astype(int) df['IsToday'] = np.where(df['Date'] == today, 1, 0)
Hope this helps - Chris Jones
Dean J
Thanks for this article! Can you pass parameters for start and end dates?