Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
I have a table of users that I want to count and then filter out the ones that are no longer active. I have a table (users) that contains a column of names (full name) and a column called 'is_active' with either 1 or 0 to indicate if they are/are not active users. I'm trying to filter the measure to give me what I want but it's simply not working and other than some vague error message I'm a bit in the dark.
Error message on the visual is " Error Message: MdxScript(Model) (24, 70) Calculation error in measure 'users'[Num users]: DAX comparison operations do not support comparing values of type Integer with values of type Text. Consider using the VALUE or FORMAT function to convert one of the values."
I'm doing this;
Solved! Go to Solution.
Hi @sputnik76 ,
Try removing "" as below
Num users = CALCULATE( COUNT(users[full name]), users[is_active] = 1 )
Hope this helps
Mariusz
Num users = CALCULATE(COUNT(users[full name]),filter(users,users[is_active]=1))
Try this
Hi @sputnik76 ,
Try removing "" as below
Num users = CALCULATE( COUNT(users[full name]), users[is_active] = 1 )
Hope this helps
Mariusz
Works, thank you!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
100 | |
72 | |
44 | |
38 | |
29 |
User | Count |
---|---|
156 | |
92 | |
62 | |
44 | |
41 |