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 have a requirment, i have a table with
Name , Country, count
Count is a numeric type which holds count of order per name..
In my Count column there is ( -9999) or ( 9999 ) values which can consider one case -9999 or 9999 I'm considering 9999
Now i need to create a measure like when ever i see 9999 it should show as "NA" in the report and other it shows it values.
Please help
Thanks,
Solved! Go to Solution.
could you please use below code as it is, in your measure.
M11 =
IF ( MAX ( 'Sheet1'[measure] ) = -9999, "NA", MAX ( 'Sheet1'[measure] ) )
Thanks,
Samarth
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
I tried with Measure and Calculated column, both are throwing error.
You can create a measure with below code:-
Measure = IF(MAX('Table'[count]) = 9999, "NA",MAX('Table'[count]))
Output:-
My table data:-
Thanks,
Samarth
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
could you please use below code as it is, in your measure.
M11 =
IF ( MAX ( 'Sheet1'[measure] ) = -9999, "NA", MAX ( 'Sheet1'[measure] ) )
Thanks,
Samarth
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
Hi @Samarth_18
Thanks for the quick help. Issue resloved the above logic.
In hurry i missed the ")" brace in the Max ( = ) 🤣
User | Count |
---|---|
87 | |
84 | |
36 | |
35 | |
32 |
User | Count |
---|---|
96 | |
75 | |
67 | |
52 | |
52 |