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
Dear All,
I think I found a bug regarding the "HASONVALUE" calculation, so when there is only one element in a list, the hasonvalue can't work in a proper way.
Could you please advise?
Thank you so much,
Máté
Solved! Go to Solution.
@Anonymous
For what you're trying to do, since in the context of the matrix there is only one country within Arab States, HASONEVALUE ( Sheet1[Country] ) returns TRUE for both the Region and Country level.
You can use the ISINSCOPE function instead of HASONEVALUE and you should only see values at the country "level".
By the way, would you want to consider aggregating with SUM instead of SELECTEDVALUE? SELECTEDVALUE will return either the single value in the Summa column or blank if there are multiple values.
Regards,
Owen
@Anonymous
For what you're trying to do, since in the context of the matrix there is only one country within Arab States, HASONEVALUE ( Sheet1[Country] ) returns TRUE for both the Region and Country level.
You can use the ISINSCOPE function instead of HASONEVALUE and you should only see values at the country "level".
By the way, would you want to consider aggregating with SUM instead of SELECTEDVALUE? SELECTEDVALUE will return either the single value in the Summa column or blank if there are multiple values.
Regards,
Owen
Hi Owen,
I also have a similar problem.
this is the link to the problem. I tried your solution but it didnt help. Could you help me resolving this?
Thanks in advance!
Dear Owen,
This is why I love this community, it is a pleasure to work with clever people!
Thank you for your recommendations, they helped me a lot.
All the best,
Máté
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 |
|---|---|
| 40 | |
| 37 | |
| 31 | |
| 23 | |
| 15 |
| User | Count |
|---|---|
| 76 | |
| 59 | |
| 31 | |
| 31 | |
| 25 |