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.
Hi there,
Please could I ask for some help creating a measure? I need to create a measure that calculates the average for a set of values in a column. The problem is that some of the values are blank, in Transform these show as 'Error', as it's a calculation of days between two dates and one of the date fields has blanks. The column I'm using (Days to Resolve.Days) was created in Power Query as seen below. No matter what DAX I use I awlays get a syntax error message or that the parameter is not the right type. All I need to do is find the average value excluding blanks. DAX won't allow me to use IF or ISBLANK as it throws an error stating it can't find the column (it only finds my other measures). I'm a bit stuck to be honest 😣. Any hlp would be greatly appreciated. Thanks.
Solved! Go to Solution.
Hello @parzival1220 can you share a demo data table with demo values to get better understanding your need.
But here for now you can use
column =
calculate(
average(col1),
filter(tbl_name,col <> blank())
)
instead of 0 you can write null
pls try this
Hello @parzival1220 can you share a demo data table with demo values to get better understanding your need.
But here for now you can use
column =
calculate(
average(col1),
filter(tbl_name,col <> blank())
)
User | Count |
---|---|
116 | |
73 | |
62 | |
50 | |
46 |
User | Count |
---|---|
173 | |
123 | |
60 | |
59 | |
57 |