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.
Hello,
I have a table that displays activities due today. In the data table, I have a column that marks today with a '1' and the filter works fine in Power BI Desktop.
When I uploaded the report to Power BI Service, the row that has the '1' gets turned to a '0.' I went into the semantic model online and changed the value, refreshed it, but will not show up in the filtered table.
I have a gateway connected to the data, but do not know why the value would change from one format to the other.
Does anyone have an idea why this would happen?
Hello @Sahir_Maharaj ,
I tried the DAX and keep getting the errors listed above. Do you have any ideas how I can adjust code?
Hello @rosie1931,
Can you please try this DAX:
Today Flag =
VAR TodayUTC = TODAY()
VAR LocalTimeOffset = -5 // Example: EST is UTC-5. Adjust this based on your time zone.
VAR AdjustedToday = DATEADD(TodayUTC, LocalTimeOffset, HOUR)
RETURN
IF (
YourTable[YourDateColumn] = AdjustedToday,
1,
0
)
Hope this helps.
Hi Sahir,
Another error I'm receiving says that the last argument of the the DateAdd function has to be Day, Month, Quarter, Year. Will the function still work with Hour?
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 |
---|---|
106 | |
98 | |
75 | |
63 | |
62 |
User | Count |
---|---|
135 | |
105 | |
104 | |
80 | |
65 |