The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi
I am trying to calculate a measure that should show the value of the measure in the visual if the selected year is 2022, else it should should as "Not Applicable".
Here is the Dax I've used.
Hi @Anonymous ,
You could click the" see details to check the detailed error message and click "fix it" to get tips that might fix the problem.
Best Regards,
Jay
Hi,
I am not sure how your DimDate table looks like, but I assume your year column is not Text Type.
Please try to replace "2022" to 2022.
Count of Manager =
IF (
SELECTEDVALUE ( Dim_Date[Year] ) = 2022,
CALCULATE (
DISTINCTCOUNT ( EmployeeMaster[Manager Id] ),
FILTER ( EmployeeMaster, EmployeeMaster[Employee Status] = "Active" )
),
"Not Applicable"
)
User | Count |
---|---|
25 | |
12 | |
8 | |
8 | |
7 |
User | Count |
---|---|
27 | |
12 | |
12 | |
12 | |
6 |