Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. 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.
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.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 56 | |
| 40 | |
| 36 | |
| 20 | |
| 18 |
| User | Count |
|---|---|
| 73 | |
| 73 | |
| 38 | |
| 35 | |
| 26 |