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.
Hi all,
Just as the picture below, I created a measure using counta function and make a line chart (week vs count text), but I found some had no points. So I checked the form and found there were several blanks.
So, how can I replace the blank with 0 and show up on the line chart. I have tried the "if" function like Measures = if(counta([forms])=0, counta([forms]),0), but did not work.
Look forward to hearing from you if you offer any solution~
Solved! Go to Solution.
Hi @DylanHzj
Here is a quick workaround which I did for your requirement.
You can replace blanks with 0 in your Power query editor else, you can create a calculated column using the following DAX in Power BI desktop.
A Column = IF(Sheet1[A] = BLANK(),0,Sheet1[A])
This calculated column is going to have 0 where there is a blank value in your master column, and you need to use this calculated column in your line chart to plot the zero values.
Here is the sample .pbix file Linechart with zeros.pbix
Let me know if you are still having issues.
Cheers,
Manendra.
Hi @DylanHzj
Here is a quick workaround which I did for your requirement.
You can replace blanks with 0 in your Power query editor else, you can create a calculated column using the following DAX in Power BI desktop.
A Column = IF(Sheet1[A] = BLANK(),0,Sheet1[A])
This calculated column is going to have 0 where there is a blank value in your master column, and you need to use this calculated column in your line chart to plot the zero values.
Here is the sample .pbix file Linechart with zeros.pbix
Let me know if you are still having issues.
Cheers,
Manendra.
Hi @DylanHzj
Can you add +0 at the end of your measure?
Ex: Measures = if(counta([forms])=0, counta([forms]),0)+0
Let me know if you are still having issues.
Cheers,
Manendra
Thanks for replying but this solution did not work. We still have no value in the forms.
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 |
---|---|
99 | |
69 | |
46 | |
39 | |
33 |
User | Count |
---|---|
163 | |
110 | |
61 | |
51 | |
40 |