Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Wherever I try incorporating a calculation with excluding blanks, I get Syntax error. Quite frustrating!
For instance- I am trying to calculate average of a clumn which has number of questions asked during a call. The column has blank cells as well. The formula I tried for the new measure is:
Solved! Go to Solution.
Hello @roger360,
Can you please try this approach:
AverageNumberOfQuestions =
CALCULATE(
AVERAGE(TrackerData[Number of questions]),
FILTER(
TrackerData,
NOT(ISBLANK(TrackerData[Number of questions]))
)
)
Hi,
Blanks do not impact an average calculation. This simple measure should work
AverageNumberOfQuestions = AVERAGE(TrackerData[Number of questions])
Hope this helps.
Hi,
Blanks do not impact an average calculation. This simple measure should work
AverageNumberOfQuestions = AVERAGE(TrackerData[Number of questions])
Hope this helps.
Ah you're right! did overthinking. Thanks
You are welcome.
Hello @roger360,
Can you please try this approach:
AverageNumberOfQuestions =
CALCULATE(
AVERAGE(TrackerData[Number of questions]),
FILTER(
TrackerData,
NOT(ISBLANK(TrackerData[Number of questions]))
)
)
Thats perfect @Sahir_Maharaj ...thanks.
Do you mind giving me a quick reason why my previous one showing that error?
User | Count |
---|---|
81 | |
76 | |
54 | |
48 | |
48 |
User | Count |
---|---|
76 | |
68 | |
47 | |
43 | |
43 |