I have written a DAX measure that calculates the cancelled appointments and it works well.
Cancelled = CALCULATE([All Adviser Cancelled Appts],
FILTER('Access Active Advisers',
'Access Active Advisers'[Access Level]="Active"))
I then modified the DAX measure to show 0 where there are blanks, however it shows all results and the ‘Active’ filter no longer applies?
Cancelled =
Var CancelledAppts = CALCULATE([All Adviser Cancelled Appts],
FILTER('Access Active Advisers','Access Active Advisers'[Access Level]="Active"))
Return
IF(
NOT ISBLANK(CancelledAppts),CancelledAppts,0
)
Just needing to understand why this does not work and how to resolve it?
Currently what is showing in the table is what your asking it to with the IF logic. This logic is basically ignoring the filter within the CALCULATE function as that only applies to that particular measure.
Do you want the inactive users to be blank? If so, aren’t they already blank in the initial table?
I’m just not getting what you need here. What values are you trying to get as the last four values if not blank or zero?
i’ve still been working on this and have taken on board what you have mentioned.
A quick question, am i able to add 0 and not show them based on the access level? (i.e-active/inactive)
The reason i ask this is because we measure our staff based on revenue added to the portfolio and in the event nothing was added, i would like to show a 0 instead of a blank.
Alternatively is there another method of extracting a column based on another column?
in the above screenshot, it like obtain a list of all advisers that are active only.
Your tutorial video “Grouping & Segmenting Your Data With DAX Measure Logic - Advanced DAX” showcases this by creating another table.
Is there a way to obtain this without creating another table?
Ok so that formula can not be used like you’re using it. When you said create a table I thought you meant actually create a physical table using the ‘table’ feature.
I think there is some learning to do around scalar functions and table functions.
Have you been through the mastering DAX course yet? Please do if not
If you wanted a table of just active like you image, then I wouldn’t complicate it. Use visual or report level filters to achieve that. You don’t need DAX functions for this specific purpose.