Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
Trying to return a unichar with hasonevalue() and using a measure
Solved! Go to Solution.
Hi @Anonymous ,
You can create a measure like this:
A =
VAR _count =
CALCULATE (
COUNT ( 'Staffing Report'[Location] ),
ALLSELECTED ( 'Staffing Report' )
)
VAR allcount =
CALCULATE ( COUNT ( 'Staffing Report'[Location] ), ALL ( 'Staffing Report' ) )
RETURN
IF ( _count >= 1 && _count < allcount, UNICHAR ( 9745 ), UNICHAR ( 9744 ) )
Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
You can create a measure like this:
A =
VAR _count =
CALCULATE (
COUNT ( 'Staffing Report'[Location] ),
ALLSELECTED ( 'Staffing Report' )
)
VAR allcount =
CALCULATE ( COUNT ( 'Staffing Report'[Location] ), ALL ( 'Staffing Report' ) )
RETURN
IF ( _count >= 1 && _count < allcount, UNICHAR ( 9745 ), UNICHAR ( 9744 ) )
Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous - Are you using HASONEFILTER or HASONEVALUE? What is the formula for the measure? Is the measure Location?
this is my measure,
@Anonymous Well, I guess the simple answer is, you cannot use a measure in HASONEFILTER. According to the documentation, you have to use a column:
HASONEFILTER function (DAX) - DAX | Microsoft Docs
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 22 | |
| 21 | |
| 20 | |
| 19 | |
| 13 |
| User | Count |
|---|---|
| 58 | |
| 52 | |
| 37 | |
| 31 | |
| 27 |