Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
@Anonymous Try below. You either need to return all text or all numbers, not text and numbers.
IF('Scores'[Current/Last]="-","-",IF('Scores'[Question Scores]<>0, IF(_score='Scores'[Question Scores],"0",_score & "") ))
But if i return it into calculated column, it will return error as well. Or i need to use the format function in DAX? if yes, how should it be like?
@Anonymous The measure I posted returns all text. Alternatively, you could write the formula this way to return either BLANK or numbers and it would work as well:
IF('Scores'[Current/Last]="-",BLANK(),IF('Scores'[Question Scores]<>0, IF(_score='Scores'[Question Scores],0,_score) ))
But exactly want "-", as i need to use "-" in the report view if it is no data instead of just blank. Any idea for that?
@Anonymous Use the first formula then. Bottom line, you either need to return text or return numbers. You *might* be able to use the second form for a number and use a Custom Format String to display your blank values as "-". Use custom format strings in Power BI Desktop - Power BI | Microsoft Learn