The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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 |
---|---|
28 | |
10 | |
8 | |
6 | |
5 |
User | Count |
---|---|
33 | |
13 | |
12 | |
9 | |
7 |