---
title: "Comment by Chris Jones on \"Comprehensive Date Dimension Table For Power BI Datasets in Fabric\" | Hashnode"
description: "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"
url: "https://hashnode.com/posts/comprehensive-date-dimension-table-for-power-bi-datasets-in-fabric/646f6ff9861e784832cfcfb0/comment/662235cc9447d96aad4ccec3"
---

[Discussion](https://hashnode.com/posts/comprehensive-date-dimension-table-for-power-bi-datasets-in-fabric/646f6ff9861e784832cfcfb0)

Comment [Comprehensive Date Dimension Table For Power BI Datasets in Fabric](https://hashnode.com/posts/comprehensive-date-dimension-table-for-power-bi-datasets-in-fabric/646f6ff9861e784832cfcfb0)

[Chris Jones](https://hashnode.com/@cjfjones)

[Apr 19, 2024](https://hashnode.com/posts/comprehensive-date-dimension-table-for-power-bi-datasets-in-fabric/646f6ff9861e784832cfcfb0/comment/662235cc9447d96aad4ccec3)

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
