This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
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
Hello all,
I'd like to improve the formule below so that I can display "no value available" in the graph when no country has been selected. (with my formula when no country are selected the graph is empty).
I've tried several options with the format function but without success.
My formula :
KPI = if(HASONEFILTER(source[REGION.Country name]);CALCULATE(SUM(source[Current value]);FILTER(source;source[INDICATOR.Indicator name]="KPI"));0)
If someone can help that would be great! 🙂
Thanks a lot
hi, @vazino
You can add a measure as below:
measure = IF(ISFILTERED( source[REGION.Country name])=BLANK() ,"Please Select a Report Date", [KPI])
and then drag it into visual
result:
here is pbix, please try it.
https://www.dropbox.com/s/idxpd57gt16f6x2/How%20to%20use%20format%20function.pbix?dl=0
and this is the problem that I've seen it before, you can refer to:
Best Regards,
Lin
You aren't going to be able to mix text and numeric data in a measure. You will want to overlay a card visual that is either blank or "no value available" depending on whether a country is selected.
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 |
|---|---|
| 38 | |
| 38 | |
| 31 | |
| 22 | |
| 15 |
| User | Count |
|---|---|
| 74 | |
| 61 | |
| 31 | |
| 31 | |
| 23 |