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 trying to create a measure that count all rows that does not start with 1 but also excludes blank entries I have a sample quick measure I made which is wrong
Count of LEG-1 If does not start with 1=
CALCULATE(
COUNTA('Dispatch Total'[LEG-1]),
'Dispatch Total'[LEG-1] IN { "1" }
)
By the way, you may take a look at https://www.sqlbi.com/articles/blank-handling-in-dax/.
Try with following
Count of LEG-1 If does not start with 1 = CALCULATE ( COUNT ( 'Dispatch Total'[LEG-1] ), NOT 'Dispatch Total'[LEG-1] IN { "1", BLANK () } )
DId I do something wrong it is counting its that start with 1
You'll need to use LEFT first.
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 |
---|---|
107 | |
94 | |
77 | |
63 | |
50 |
User | Count |
---|---|
147 | |
106 | |
104 | |
87 | |
61 |