The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
hi all,
i have been tasked to provide a hour by hour report so throughout the day we can see how many hours are available in our factory.
If i run the below query i can see that if the UTC time is between 8:30 and 11:30 then i need to multiply the available employees by 3.
However when i run it i get the below error, its something to do with the SUM(Query1[Availability])*3,0 but i can not identify what.
DAX comparison operations do not support comparing values of type Text with values of type Date. Consider using the VALUE or FORMAT function to convert one of the values.
Any help much appreciated
thanks
Hi @Anonymous
this problem occurs because after applying left operator, your field is converted to string, so I recommend you use this expression:
Hi @Anonymous
Thank you, i get no errors but the expression doesn't return any results.
i thought it might be the times so i changed the times to be between 0,0,01 to 23,59,0 and to return a 1 but i still get 0. If i can get this part working then i will work on the actual calculation i need to put in after
Regards
Paul
User | Count |
---|---|
15 | |
12 | |
8 | |
7 | |
7 |
User | Count |
---|---|
24 | |
21 | |
12 | |
10 | |
7 |