Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi folks,
Is it possible to replace the value of 'Blank' in this card to either null or 0 when the condition does not find any records please?
Thanks,
Solved! Go to Solution.
measure= IF(ISBLANK(COUNT('Breach Log'[Date Identified (GMT)])), 0, COUNT('Breach Log'[Date Identified (GMT)]))
1. Create a New column like
Hi @Anonymous I get the following message - what am I doing wrong?
Hello @stokidez ,
Try with the measure
Measure = COALESCE(MAX('Breach Log'[Date Identified (GMT)]),0)
Hi @Krutigawale33, this returns a value in the thousands as opposed to 0 which was the expected result
Hello,
Please try any of the following :
Sorry I couldn't get this to work with either formula - do you know where I'm going wrong? Thanks.
Sorry @Anonymous I'm a real newbie here so if you can spell it out it would be appreciated.
My field is titled 'Breach Log'[Date Identified (GMT). The card has a filter which is after X date and before Y date. There are currently no records which match that criteria. How do I show null or 0 if there are no records returned?
Measure= IF(ISBLANK(SUM('Breach Log'[Date Identified (GMT)])), 0, SUM('Breach Log'[Date Identified (GMT)]))
@Anonymous Thanks for the response. I get the following result 0.00. However, I expect over time that records will meet the date criteria set - I've amended my date range and it gives me a value not a count of the number of instances where that date range appears in the data-set.
If I amend the date range so it picks up records, there are actually 19 which match this date range, however the measure shows 44k.
measure= IF(ISBLANK(COUNT('Breach Log'[Date Identified (GMT)])), 0, COUNT('Breach Log'[Date Identified (GMT)]))
Thanks again @Anonymous - It worked! Many thanks for your perseverance!
Hi, @stokidez
Please try to write your DAX measure in the card visual like below.
cardvisual =
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
@Jihwan_Kim I tried your forumla, I'm obviously doing something wrong - if you could point me in the right direction that would be great.
@stokidez , +0 in measure
example
meausre = sum(Table[Value])+0
Hiya @amitchandak , I've tried your forumula with my field but I receive the following error - what am I doing wrong please? My field is called Date Identified (GMT)
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
99 | |
83 | |
70 | |
61 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |