Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
I created a measure to replace blanks with '0' in a table, but now I have an issue where the function has inserted zeros for the rest of 2022 year. I'd like to constrain this date up to the current month only. I would appreciate some advice on how to solve this.
Solved! Go to Solution.
Hi, @Anonymous ;
Your parentheses are not in the right place. You are missing ") "where I made up the notes.
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Anonymous;
Hi, @Anonymous;
Hi, @Anonymous ;
Your parentheses are not in the right place. You are missing ") "where I made up the notes.
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Anonymous ;
You could modify measure as follow:
COALESCE =
IF(MAX('Table'[Date].[Date])<=EOMONTH( MAXX(ALL('Table'),[Date]),0),COALESCE(COUNT('Table'[Date]),0))
The final output is shown below:
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@v-yalanwu-msft Thanks. I've tried that, but now I have this error. I've checked the syntax but I don't know what's wrong.
Hi @Anonymous
Try this:
Var _A = calculate(COUNT(Incident[Date]),filter(Incident,Incident[Date]<=today()))
return
Measure = IF(isblank(_A),0,_A)
Or set a filter on the filter pane to show filter before today.
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/
Hi @Anonymous
Not sure why my formula changed :-D, Try this:
Measure =
Var _A = calculate(COUNT(Incident[Date]),filter(Incident,Incident[Date]<=today()))
return
IF(isblank(_A),0,_A)
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 48 | |
| 46 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 70 | |
| 69 | |
| 32 | |
| 27 | |
| 26 |