Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I am trying to make a measure like this
AbsentCount = COUNTAX(FILTER('Attendance Review','Attendance Review'[Absent] = TRUE() && ISBLANK('Attendance Review'[SignoutTime])),'Attendance Review'[Absent])
When I try to pull that measure into a table I get this message
Couldn't load the data for this visual
MdxScript(Model) (37, 76) Calculation error in measure 'Attendance Review'[AbsentCount]: DAX comparison operations do not support comparing values of type True/False with values of type Integer. Consider using the VALUE or FORMAT function to convert one of the values.
This is pulling data from an Azure SQL view. The Absent column is of type boolean. I tried = 1 as well and got same error. I tried removing the && and second expression and got same error as well. Not sure what I am doing wrong.
Solved! Go to Solution.
hi @hoyty ,
the issue is now clear:
Hi,
It is boolean that is generally either NULL or 1. Ocassionally it is a 0 due to someone being marked absent and then cleared. This is from SQL SMS.
hi @hoyty ,
the issue is now clear:
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
22 | |
7 | |
6 | |
6 | |
6 |
User | Count |
---|---|
27 | |
12 | |
10 | |
9 | |
6 |