Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
I'm having a little trouble adding the IF(ISBLANK function to a measure to remove the resulting (Blank). When trying to add I get the error that the IF(ISBLANK can only work with 1 argument.
Solved! Go to Solution.
Right, so maybe try this:
Count of Source for Red =
VAR __Value =
CALCULATE(COUNTA('Booking Charge Report'[Source]),
'Booking Charge Report'[Source] IN { "Red" }
)
RETURN
IF(ISBLANK(__Value)," ",__Value)
Right, so maybe try this:
Count of Source for Red =
VAR __Value =
CALCULATE(COUNTA('Booking Charge Report'[Source]),
'Booking Charge Report'[Source] IN { "Red" }
)
RETURN
IF(ISBLANK(__Value)," ",__Value)
Worked a treat, thanks Greg
COUNTA will not consider blank,
And if you want blank the try like
Count of Source for Red =
CALCULATE(COUNTX(filter('Booking Charge Report'),not(isblank('Booking Charge Report'[Source]))'Booking Charge Report'[Source]),
'Booking Charge Report'[Source] IN { "Red" }
)
Sorry Greg, Just on that solution, it gave the desired effect but now the actual results are showing with 2 decimal places and the option to change this in the format bar are greyed out....
Disregard, I figured it out... Thanks.
Thanks amitchandak, sorry I'm not sure I understand "And if you want blank then try like" from your reply, are you saying that this will remove the (Blank) result from showing in the visual.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
104 | |
69 | |
48 | |
41 | |
34 |
User | Count |
---|---|
164 | |
112 | |
62 | |
54 | |
38 |